home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Tape Archive
(archive/tar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Tape Archive (archive/tar)
| magic
| Supported |
100%
| file
| POSIX tar archive (GNU)
| default
| |
99%
| file
| POSIX tar archive (GNU), directory bootutils/, mode 775 , uid 310 , gid 15 , size 0 , seconds 5414570056, user linux, group linux
| default
| |
98%
| file
| data
| default
| |
62%
| TrID
| TAR - Tape ARchive (GNU)
| default
| |
37%
| TrID
| TAR - Tape ARchive (directory)
| default
| |
100%
| lsar
| Tar
| default
| |
100%
| gt2
| TAR Archiv gefunden (Auflistung ist deaktiviert)
| default
| |
100%
| disktype
| GNU tar archive
| default
| |
100%
| detectItEasy
| Archive: tar
| default
| |
100%
| binwalkID
| POSIX tar archive (GNU), owner user name: "s/"
| default
| |
100%
| xdgMime
| application/x-tar
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 62 6f 6f 74 75 74 69 6c | 73 2f 00 00 00 00 00 00 |bootutil|s/......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 37 35 20 00 20 20 20 33 |.... 7|75 . 3|
|00000070| 31 30 20 00 20 20 20 20 | 31 35 20 00 20 20 20 20 |10 . |15 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 35 34 31 34 35 37 30 | 0 | 5414570|
|00000090| 30 35 36 20 20 31 31 34 | 35 32 00 20 35 00 00 00 |056 114|52. 5...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 75 73 74 61 72 20 20 | 00 6c 69 6e 75 78 00 00 |.ustar |.linux..|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 6c 69 6e 75 78 00 00 |........|.linux..|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 62 6f 6f 74 75 74 69 6c | 73 2f 66 73 75 74 69 6c |bootutil|s/fsutil|
|00000210| 2f 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |/.......|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 20 20 33 |.... 7|55 . 3|
|00000270| 31 30 20 00 20 20 20 20 | 31 35 20 00 20 20 20 20 |10 . |15 . |
|00000280| 20 20 20 20 20 20 30 20 | 20 35 34 31 34 34 35 35 | 0 | 5414455|
|00000290| 36 30 30 20 20 31 32 37 | 35 33 00 20 35 00 00 00 |600 127|53. 5...|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 75 73 74 61 72 20 20 | 00 6c 69 6e 75 78 00 00 |.ustar |.linux..|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 6c 69 6e 75 78 00 00 |........|.linux..|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 62 6f 6f 74 75 74 69 6c | 73 2f 66 73 75 74 69 6c |bootutil|s/fsutil|
|00000410| 2f 41 4e 4e 4f 55 4e 43 | 45 00 00 00 00 00 00 00 |/ANNOUNC|E.......|
|00000420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 20 20 20 34 | 34 34 20 00 20 20 20 33 |.... 4|44 . 3|
|00000470| 31 30 20 00 20 20 20 20 | 31 35 20 00 20 20 20 20 |10 . |15 . |
|00000480| 20 20 20 32 32 34 30 20 | 20 35 34 31 34 34 35 35 | 2240 | 5414455|
|00000490| 36 30 30 20 20 31 34 31 | 36 30 00 20 30 00 00 00 |600 141|60. 0...|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 75 73 74 61 72 20 20 | 00 6c 69 6e 75 78 00 00 |.ustar |.linux..|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 6c 69 6e 75 78 00 00 |........|.linux..|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 49 20 68 61 76 65 20 75 | 70 6c 6f 61 64 65 64 20 |I have u|ploaded |
|00000610| 76 65 72 73 69 6f 6e 20 | 31 2e 37 20 6f 66 20 6d |version |1.7 of m|
|00000620| 79 20 67 65 6e 65 72 69 | 63 20 66 73 63 6b 2f 6d |y generi|c fsck/m|
|00000630| 6b 66 73 20 66 72 6f 6e | 64 2d 65 6e 64 20 74 6f |kfs fron|d-end to|
|00000640| 0a 73 75 6e 73 69 74 65 | 2e 75 6e 63 2e 65 64 75 |.sunsite|.unc.edu|
|00000650| 20 61 6e 64 20 74 73 78 | 2d 31 31 2e 6d 69 74 2e | and tsx|-11.mit.|
|00000660| 65 64 75 2e 20 20 4c 6f | 6f 6b 20 66 6f 72 20 66 |edu. Lo|ok for f|
|00000670| 73 75 74 69 6c 2d 31 2e | 37 2e 74 61 72 2e 7a 20 |sutil-1.|7.tar.z |
|00000680| 69 6e 0a 74 68 65 20 75 | 73 75 61 6c 20 70 6c 61 |in.the u|sual pla|
|00000690| 63 65 73 2e 20 20 54 68 | 65 20 66 6f 6c 6c 6f 77 |ces. Th|e follow|
|000006a0| 69 6e 67 20 69 73 20 61 | 6e 20 65 78 63 65 72 70 |ing is a|n excerp|
|000006b0| 74 20 66 72 6f 6d 20 74 | 68 65 20 52 45 41 44 4d |t from t|he READM|
|000006c0| 45 2e 0a 0a 54 68 69 73 | 20 69 73 20 76 65 72 73 |E...This| is vers|
|000006d0| 69 6f 6e 20 31 2e 37 20 | 6f 66 20 6d 79 20 67 65 |ion 1.7 |of my ge|
|000006e0| 6e 65 72 69 63 2c 20 66 | 72 6f 6e 74 2d 65 6e 64 |neric, f|ront-end|
|000006f0| 20 66 6f 72 20 66 73 63 | 6b 20 61 6e 64 20 6d 6b | for fsc|k and mk|
|00000700| 66 73 2e 20 20 54 68 69 | 73 0a 6c 69 74 74 6c 65 |fs. Thi|s.little|
|00000710| 20 75 74 69 6c 69 74 79 | 20 74 61 6b 65 73 20 74 | utility| takes t|
|00000720| 68 65 20 67 75 65 73 73 | 2d 77 6f 72 6b 20 6f 75 |he guess|-work ou|
|00000730| 74 20 6f 66 20 74 72 79 | 69 6e 67 20 74 6f 20 72 |t of try|ing to r|
|00000740| 65 6d 65 6d 62 65 72 20 | 74 68 65 0a 6f 66 74 65 |emember |the.ofte|
|00000750| 6e 20 63 72 79 70 74 69 | 63 20 6e 61 6d 65 20 66 |n crypti|c name f|
|00000760| 6f 72 20 61 20 70 61 72 | 74 69 63 75 6c 61 72 20 |or a par|ticular |
|00000770| 66 69 6c 65 20 73 79 73 | 74 65 6d 2d 73 70 65 63 |file sys|tem-spec|
|00000780| 69 66 69 63 20 75 74 69 | 6c 69 74 79 2e 20 20 49 |ific uti|lity. I|
|00000790| 6e 0a 6d 6f 73 74 20 63 | 61 73 65 73 2c 20 79 6f |n.most c|ases, yo|
|000007a0| 75 20 63 61 6e 20 73 69 | 6d 70 6c 79 20 74 79 70 |u can si|mply typ|
|000007b0| 65 20 27 66 73 63 6b 20 | 2f 64 65 76 2f 78 79 7a |e 'fsck |/dev/xyz|
|000007c0| 27 20 77 69 74 68 6f 75 | 74 20 72 65 67 61 72 64 |' withou|t regard|
|000007d0| 20 74 6f 20 74 68 65 0a | 66 69 6c 65 20 73 79 73 | to the.|file sys|
|000007e0| 74 65 6d 20 74 79 70 65 | 2e 20 20 4d 6b 66 73 20 |tem type|. Mkfs |
|000007f0| 69 73 20 73 69 6d 69 6c | 61 72 6c 79 20 73 75 70 |is simil|arly sup|
|00000800| 70 6f 72 74 65 64 2c 20 | 62 75 74 20 69 73 20 28 |ported, |but is (|
|00000810| 49 4d 4f 29 20 6f 66 0a | 64 75 62 69 6f 75 73 20 |IMO) of.|dubious |
|00000820| 76 61 6c 75 65 2e 20 20 | 57 68 65 6e 20 69 6e 76 |value. |When inv|
|00000830| 6f 6b 65 64 20 61 73 20 | 66 73 63 6b 2c 20 69 74 |oked as |fsck, it|
|00000840| 20 61 6c 73 6f 20 73 75 | 70 70 6f 72 74 73 20 61 | also su|pports a|
|00000850| 20 27 63 68 65 63 6b 20 | 61 6c 6c 27 0a 6f 70 74 | 'check |all'.opt|
|00000860| 69 6f 6e 2e 0a 0a 43 68 | 61 6e 67 65 73 20 66 72 |ion...Ch|anges fr|
|00000870| 6f 6d 20 76 65 72 73 69 | 6f 6e 20 31 2e 36 20 74 |om versi|on 1.6 t|
|00000880| 6f 20 31 2e 37 0a 0a 09 | 43 68 61 6e 67 65 64 20 |o 1.7...|Changed |
|00000890| 2d 56 20 6f 70 74 69 6f | 6e 20 74 6f 20 63 61 75 |-V optio|n to cau|
|000008a0| 73 65 20 76 65 72 62 6f | 73 65 20 6f 75 74 70 75 |se verbo|se outpu|
|000008b0| 74 2e 20 20 55 73 69 6e | 67 20 2d 56 0a 09 6d 6f |t. Usin|g -V..mo|
|000008c0| 72 65 20 74 68 61 6e 20 | 6f 6e 63 65 20 72 65 73 |re than |once res|
|000008d0| 75 6c 74 73 20 69 6e 20 | 74 68 65 20 73 61 6d 65 |ults in |the same|
|000008e0| 20 6f 75 74 70 75 74 20 | 62 75 74 20 69 6e 68 69 | output |but inhi|
|000008f0| 62 69 74 73 0a 09 65 78 | 65 63 75 74 69 6f 6e 20 |bits..ex|ecution |
|00000900| 6f 66 20 66 73 2d 73 70 | 65 63 69 66 69 63 20 70 |of fs-sp|ecific p|
|00000910| 72 6f 67 72 61 6d 73 20 | 28 69 2e 65 2e 20 64 65 |rograms |(i.e. de|
|00000920| 62 75 67 20 6d 6f 64 65 | 29 2e 0a 0a 09 4c 6f 6f |bug mode|)....Loo|
|00000930| 6b 20 66 6f 72 20 66 69 | 6c 65 20 73 79 73 74 65 |k for fi|le syste|
|00000940| 6d 2d 73 70 65 63 69 66 | 69 63 20 70 72 6f 67 72 |m-specif|ic progr|
|00000950| 61 6d 73 20 69 6e 20 2f | 65 74 63 2f 66 73 20 66 |ams in /|etc/fs f|
|00000960| 69 72 73 74 2c 0a 09 74 | 68 65 6e 20 69 6e 20 2f |irst,..t|hen in /|
|00000970| 65 74 63 20 61 6e 64 20 | 66 69 6e 61 6c 6c 79 20 |etc and |finally |
|00000980| 69 6e 20 74 68 65 20 75 | 73 65 72 27 73 20 50 41 |in the u|ser's PA|
|00000990| 54 48 2e 20 20 55 73 65 | 20 74 68 69 73 0a 09 74 |TH. Use| this..t|
|000009a0| 6f 20 72 65 64 75 63 65 | 20 73 6f 6d 65 20 6f 66 |o reduce| some of|
|000009b0| 20 74 68 65 20 63 6c 75 | 74 74 65 72 20 69 6e 20 | the clu|tter in |
|000009c0| 2f 65 74 63 2e 0a 0a 09 | 49 67 6e 6f 72 65 20 49 |/etc....|Ignore I|
|000009d0| 53 4f 39 36 36 30 20 66 | 69 6c 65 20 73 79 73 74 |SO9660 f|ile syst|
|000009e0| 65 6d 73 20 77 68 65 6e | 20 63 68 65 63 6b 69 6e |ems when| checkin|
|000009f0| 67 20 61 6c 6c 20 73 79 | 73 74 65 6d 73 2e 0a 0a |g all sy|stems...|
|00000a00| 09 41 6c 6c 6f 77 20 66 | 69 6c 65 20 73 79 73 74 |.Allow f|ile syst|
|00000a10| 65 6d 73 20 74 6f 20 62 | 65 20 73 70 65 63 69 66 |ems to b|e specif|
|00000a20| 69 65 64 20 77 69 74 68 | 20 65 69 74 68 65 72 20 |ied with| either |
|00000a30| 74 68 65 20 64 65 76 69 | 63 65 0a 09 6e 61 6d 65 |the devi|ce..name|
|00000a40| 20 6f 72 20 74 68 65 20 | 6d 6f 75 6e 74 20 70 6f | or the |mount po|
|00000a50| 69 6e 74 2e 0a 0a 09 52 | 65 74 75 72 6e 20 6d 65 |int....R|eturn me|
|00000a60| 61 6e 69 6e 67 66 75 6c | 20 65 78 69 74 20 63 6f |aningful| exit co|
|00000a70| 64 65 73 2e 20 20 53 65 | 65 20 74 68 65 20 6d 61 |des. Se|e the ma|
|00000a80| 6e 75 61 6c 20 70 61 67 | 65 73 20 66 6f 72 0a 09 |nual pag|es for..|
|00000a90| 64 65 74 61 69 6c 73 2e | 0a 0a 44 61 76 69 64 0a |details.|..David.|
|00000aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c00| 62 6f 6f 74 75 74 69 6c | 73 2f 66 73 75 74 69 6c |bootutil|s/fsutil|
|00000c10| 2f 4d 61 6b 65 66 69 6c | 65 00 00 00 00 00 00 00 |/Makefil|e.......|
|00000c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c60| 00 00 00 00 20 20 20 34 | 34 34 20 00 20 20 20 33 |.... 4|44 . 3|
|00000c70| 31 30 20 00 20 20 20 20 | 31 35 20 00 20 20 20 20 |10 . |15 . |
|00000c80| 20 20 20 20 34 36 33 20 | 20 35 34 31 34 34 35 35 | 463 | 5414455|
|00000c90| 36 30 30 20 20 31 34 34 | 35 34 00 20 30 00 00 00 |600 144|54. 0...|
|00000ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d00| 00 75 73 74 61 72 20 20 | 00 6c 69 6e 75 78 00 00 |.ustar |.linux..|
|00000d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d20| 00 00 00 00 00 00 00 00 | 00 6c 69 6e 75 78 00 00 |........|.linux..|
|00000d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 42 49 4e 44 49 52 20 3d | 20 2f 65 74 63 0a 4d 41 |BINDIR =| /etc.MA|
|00000e10| 4e 44 49 52 20 3d 20 2f | 75 73 72 2f 6d 61 6e 0a |NDIR = /|usr/man.|
|00000e20| 4d 41 4e 45 58 54 20 3d | 20 38 0a 43 46 4c 41 47 |MANEXT =| 8.CFLAG|
|00000e30| 53 20 3d 20 2d 4f 20 2d | 57 61 6c 6c 20 2d 4e 20 |S = -O -|Wall -N |
|00000e40| 2d 73 0a 0a 61 6c 6c 3a | 20 75 74 69 6c 0a 0a 63 |-s..all:| util..c|
|00000e50| 6c 65 61 6e 3a 0a 09 72 | 6d 20 2d 66 20 75 74 69 |lean:..r|m -f uti|
|00000e60| 6c 20 2a 2e 6f 20 2a 7e | 20 63 6f 72 65 0a 0a 69 |l *.o *~| core..i|
|00000e70| 6e 73 74 61 6c 6c 3a 20 | 61 6c 6c 0a 09 69 6e 73 |nstall: |all..ins|
|00000e80| 74 61 6c 6c 20 2d 63 20 | 75 74 69 6c 20 24 28 42 |tall -c |util $(B|
|00000e90| 49 4e 44 49 52 29 2f 66 | 73 63 6b 0a 09 6c 6e 20 |INDIR)/f|sck..ln |
|00000ea0| 2d 66 20 24 28 42 49 4e | 44 49 52 29 2f 66 73 63 |-f $(BIN|DIR)/fsc|
|00000eb0| 6b 20 24 28 42 49 4e 44 | 49 52 29 2f 6d 6b 66 73 |k $(BIND|IR)/mkfs|
|00000ec0| 0a 09 69 6e 73 74 61 6c | 6c 20 2d 63 20 66 73 63 |..instal|l -c fsc|
|00000ed0| 6b 2e 38 20 24 28 4d 41 | 4e 44 49 52 29 2f 6d 61 |k.8 $(MA|NDIR)/ma|
|00000ee0| 6e 24 28 4d 41 4e 45 58 | 54 29 2f 66 73 63 6b 2e |n$(MANEX|T)/fsck.|
|00000ef0| 24 28 4d 41 4e 45 58 54 | 29 0a 09 69 6e 73 74 61 |$(MANEXT|)..insta|
|00000f00| 6c 6c 20 2d 63 20 6d 6b | 66 73 2e 38 20 24 28 4d |ll -c mk|fs.8 $(M|
|00000f10| 41 4e 44 49 52 29 2f 6d | 61 6e 24 28 4d 41 4e 45 |ANDIR)/m|an$(MANE|
|00000f20| 58 54 29 2f 6d 6b 66 73 | 2e 24 28 4d 41 4e 45 58 |XT)/mkfs|.$(MANEX|
|00000f30| 54 29 0a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |T)......|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 62 6f 6f 74 75 74 69 6c | 73 2f 66 73 75 74 69 6c |bootutil|s/fsutil|
|00001010| 2f 52 45 41 44 4d 45 00 | 00 00 00 00 00 00 00 00 |/README.|........|
|00001020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 20 20 20 34 | 34 34 20 00 20 20 20 33 |.... 4|44 . 3|
|00001070| 31 30 20 00 20 20 20 20 | 31 35 20 00 20 20 20 20 |10 . |15 . |
|00001080| 20 20 20 34 34 35 32 20 | 20 35 34 31 34 34 35 35 | 4452 | 5414455|
|00001090| 36 30 30 20 20 31 33 37 | 31 36 00 20 30 00 00 00 |600 137|16. 0...|
|000010a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001100| 00 75 73 74 61 72 20 20 | 00 6c 69 6e 75 78 00 00 |.ustar |.linux..|
|00001110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001120| 00 00 00 00 00 00 00 00 | 00 6c 69 6e 75 78 00 00 |........|.linux..|
|00001130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001200| 54 68 69 73 20 69 73 20 | 76 65 72 73 69 6f 6e 20 |This is |version |
|00001210| 31 2e 37 20 6f 66 20 6d | 79 20 67 65 6e 65 72 69 |1.7 of m|y generi|
|00001220| 63 2c 20 66 72 6f 6e 74 | 2d 65 6e 64 20 66 6f 72 |c, front|-end for|
|00001230| 20 66 73 63 6b 20 61 6e | 64 20 6d 6b 66 73 2e 20 | fsck an|d mkfs. |
|00001240| 20 54 68 69 73 0a 6c 69 | 74 74 6c 65 20 75 74 69 | This.li|ttle uti|
|00001250| 6c 69 74 79 20 74 61 6b | 65 73 20 74 68 65 20 67 |lity tak|es the g|
|00001260| 75 65 73 73 2d 77 6f 72 | 6b 20 6f 75 74 20 6f 66 |uess-wor|k out of|
|00001270| 20 74 72 79 69 6e 67 20 | 74 6f 20 72 65 6d 65 6d | trying |to remem|
|00001280| 62 65 72 20 74 68 65 0a | 6f 66 74 65 6e 20 63 72 |ber the.|often cr|
|00001290| 79 70 74 69 63 20 6e 61 | 6d 65 20 66 6f 72 20 61 |yptic na|me for a|
|000012a0| 20 70 61 72 74 69 63 75 | 6c 61 72 20 66 69 6c 65 | particu|lar file|
|000012b0| 20 73 79 73 74 65 6d 2d | 73 70 65 63 69 66 69 63 | system-|specific|
|000012c0| 20 75 74 69 6c 69 74 79 | 2e 20 20 49 6e 0a 6d 6f | utility|. In.mo|
|000012d0| 73 74 20 63 61 73 65 73 | 2c 20 79 6f 75 20 63 61 |st cases|, you ca|
|000012e0| 6e 20 73 69 6d 70 6c 79 | 20 74 79 70 65 20 27 66 |n simply| type 'f|
|000012f0| 73 63 6b 20 2f 64 65 76 | 2f 78 79 7a 27 20 77 69 |sck /dev|/xyz' wi|
|00001300| 74 68 6f 75 74 20 72 65 | 67 61 72 64 20 74 6f 20 |thout re|gard to |
|00001310| 74 68 65 0a 66 69 6c 65 | 20 73 79 73 74 65 6d 20 |the.file| system |
|00001320| 74 79 70 65 2e 20 20 4d | 6b 66 73 20 69 73 20 73 |type. M|kfs is s|
|00001330| 69 6d 69 6c 61 72 6c 79 | 20 73 75 70 70 6f 72 74 |imilarly| support|
|00001340| 65 64 2c 20 62 75 74 20 | 69 73 20 28 49 4d 4f 29 |ed, but |is (IMO)|
|00001350| 20 6f 66 0a 64 75 62 69 | 6f 75 73 20 76 61 6c 75 | of.dubi|ous valu|
|00001360| 65 2e 20 20 57 68 65 6e | 20 69 6e 76 6f 6b 65 64 |e. When| invoked|
|00001370| 20 61 73 20 66 73 63 6b | 2c 20 69 74 20 61 6c 73 | as fsck|, it als|
|00001380| 6f 20 73 75 70 70 6f 72 | 74 73 20 61 20 27 63 68 |o suppor|ts a 'ch|
|00001390| 65 63 6b 20 61 6c 6c 27 | 0a 6f 70 74 69 6f 6e 2e |eck all'|.option.|
|000013a0| 0a 0a 54 68 65 20 66 73 | 2d 73 70 65 63 69 66 69 |..The fs|-specifi|
|000013b0| 63 20 70 72 6f 67 72 61 | 6d 73 20 61 72 65 20 65 |c progra|ms are e|
|000013c0| 78 70 65 63 74 65 64 20 | 74 6f 20 62 65 20 6e 61 |xpected |to be na|
|000013d0| 6d 65 64 20 66 73 70 72 | 6f 67 2e 66 73 74 79 70 |med fspr|og.fstyp|
|000013e0| 65 2c 20 77 68 65 72 65 | 0a 66 73 70 72 6f 67 20 |e, where|.fsprog |
|000013f0| 69 73 20 74 68 65 20 72 | 6f 6f 74 20 70 72 6f 67 |is the r|oot prog|
|00001400| 72 61 6d 20 6e 61 6d 65 | 20 28 66 73 63 6b 20 6f |ram name| (fsck o|
|00001410| 72 20 6d 6b 66 73 29 20 | 61 6e 64 20 66 73 74 79 |r mkfs) |and fsty|
|00001420| 70 65 20 69 73 20 74 68 | 65 20 74 79 70 65 0a 6f |pe is th|e type.o|
|00001430| 66 20 74 68 65 20 66 69 | 6c 65 20 73 79 73 74 65 |f the fi|le syste|
|00001440| 6d 2e 20 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |m. For |example,|
|00001450| 20 74 68 65 20 6d 69 6e | 69 78 20 66 69 6c 65 20 | the min|ix file |
|00001460| 73 79 73 74 65 6d 20 63 | 68 65 63 6b 65 72 20 73 |system c|hecker s|
|00001470| 68 6f 75 6c 64 0a 62 65 | 20 63 61 6c 6c 65 64 20 |hould.be| called |
|00001480| 66 73 63 6b 2e 6d 69 6e | 69 78 20 61 6e 64 20 74 |fsck.min|ix and t|
|00001490| 68 65 20 65 78 74 65 6e | 64 65 64 20 66 69 6c 65 |he exten|ded file|
|000014a0| 20 73 79 73 74 65 6d 20 | 62 75 69 6c 64 65 72 20 | system |builder |
|000014b0| 73 68 6f 75 6c 64 20 62 | 65 0a 63 61 6c 6c 65 64 |should b|e.called|
|000014c0| 20 6d 6b 66 73 2e 65 78 | 74 2e 20 20 54 68 69 73 | mkfs.ex|t. This|
|000014d0| 20 6e 61 6d 69 6e 67 20 | 63 6f 6e 76 65 6e 74 69 | naming |conventi|
|000014e0| 6f 6e 20 77 61 73 20 61 | 64 6f 70 74 65 64 20 62 |on was a|dopted b|
|000014f0| 65 63 61 75 73 65 20 69 | 74 20 61 6c 6c 6f 77 73 |ecause i|t allows|
|00001500| 0a 6e 65 77 20 66 69 6c | 65 20 73 79 73 74 65 6d |.new fil|e system|
|00001510| 20 74 79 70 65 73 20 74 | 6f 20 62 65 20 73 75 70 | types t|o be sup|
|00001520| 70 6f 72 74 65 64 20 77 | 69 74 68 6f 75 74 20 68 |ported w|ithout h|
|00001530| 61 76 69 6e 67 20 74 6f | 20 72 65 63 6f 6d 70 69 |aving to| recompi|
|00001540| 6c 65 20 74 68 65 0a 66 | 72 6f 6e 74 2d 65 6e 64 |le the.f|ront-end|
|00001550| 2e 0a 0a 46 73 2d 73 70 | 65 63 69 66 69 63 20 70 |...Fs-sp|ecific p|
|00001560| 72 6f 67 72 61 6d 73 20 | 61 72 65 20 73 65 61 72 |rograms |are sear|
|00001570| 63 68 65 64 20 66 6f 72 | 20 69 6e 20 2f 65 74 63 |ched for| in /etc|
|00001580| 2f 66 73 20 66 69 72 73 | 74 2c 20 74 68 65 6e 20 |/fs firs|t, then |
|00001590| 69 6e 20 2f 65 74 63 0a | 61 6e 64 20 66 69 6e 61 |in /etc.|and fina|
|000015a0| 6c 6c 79 20 69 6e 20 74 | 68 65 20 64 69 72 65 63 |lly in t|he direc|
|000015b0| 74 6f 72 69 65 73 20 6c | 69 73 74 65 64 20 69 6e |tories l|isted in|
|000015c0| 20 74 68 65 20 50 41 54 | 48 20 65 6e 76 69 72 6f | the PAT|H enviro|
|000015d0| 6d 65 6e 74 20 76 61 72 | 69 61 62 6c 65 2e 0a 54 |ment var|iable..T|
|000015e0| 6f 20 68 65 6c 70 20 72 | 65 64 75 63 65 20 73 6f |o help r|educe so|
|000015f0| 6d 65 20 6f 66 20 74 68 | 65 20 63 6c 75 74 74 65 |me of th|e clutte|
|00001600| 72 20 69 6e 20 2f 65 74 | 63 2c 20 2f 65 74 63 2f |r in /et|c, /etc/|
|00001610| 66 73 20 69 73 20 74 68 | 65 20 72 65 63 6f 6d 6d |fs is th|e recomm|
|00001620| 65 6e 64 65 64 0a 6c 6f | 63 61 74 69 6f 6e 20 66 |ended.lo|cation f|
|00001630| 6f 72 20 66 73 2d 73 70 | 65 63 69 66 69 63 20 70 |or fs-sp|ecific p|
|00001640| 72 6f 67 72 61 6d 73 2e | 0a 0a 49 4d 50 4f 52 54 |rograms.|..IMPORT|
|00001650| 41 4e 54 20 4e 4f 54 45 | 3a 20 20 59 6f 75 20 73 |ANT NOTE|: You s|
|00001660| 68 6f 75 6c 64 20 72 65 | 6e 61 6d 65 20 79 6f 75 |hould re|name you|
|00001670| 72 20 63 75 72 72 65 6e | 74 20 75 74 69 6c 69 74 |r curren|t utilit|
|00001680| 69 65 73 20 74 6f 20 66 | 6f 6c 6c 6f 77 0a 74 68 |ies to f|ollow.th|
|00001690| 65 20 6e 65 77 20 6e 61 | 6d 69 6e 67 20 63 6f 6e |e new na|ming con|
|000016a0| 76 65 6e 74 69 6f 6e 20 | 2a 62 65 66 6f 72 65 2a |vention |*before*|
|000016b0| 20 69 6e 73 74 61 6c 6c | 69 6e 67 20 74 68 69 73 | install|ing this|
|000016c0| 20 75 74 69 6c 69 74 79 | 2e 20 20 49 66 20 79 6f | utility|. If yo|
|000016d0| 75 0a 64 6f 6e 27 74 2c | 20 79 6f 75 20 77 69 6c |u.don't,| you wil|
|000016e0| 6c 20 6f 76 65 72 77 72 | 69 74 65 20 79 6f 75 72 |l overwr|ite your|
|000016f0| 20 6d 69 6e 69 78 20 66 | 69 6c 65 20 73 79 73 74 | minix f|ile syst|
|00001700| 65 6d 20 70 72 6f 67 72 | 61 6d 73 2e 0a 0a 49 66 |em progr|ams...If|
|00001710| 20 79 6f 75 20 77 6f 75 | 6c 64 20 6c 69 6b 65 20 | you wou|ld like |
|00001720| 74 6f 20 73 65 65 20 74 | 68 69 73 20 75 74 69 6c |to see t|his util|
|00001730| 69 74 79 20 62 65 63 6f | 6d 65 20 73 74 61 6e 64 |ity beco|me stand|
|00001740| 61 72 64 20 69 6e 20 74 | 68 65 20 4c 69 6e 75 78 |ard in t|he Linux|
|00001750| 0a 63 6f 6d 6d 75 6e 69 | 74 79 2c 20 70 6c 65 61 |.communi|ty, plea|
|00001760| 73 65 20 64 72 6f 70 20 | 61 20 6e 6f 74 65 20 74 |se drop |a note t|
|00001770| 6f 20 79 6f 75 72 20 66 | 61 76 6f 72 69 74 65 20 |o your f|avorite |
|00001780| 70 61 63 6b 61 67 65 20 | 6f 72 20 66 69 6c 65 20 |package |or file |
|00001790| 73 79 73 74 65 6d 0a 6d | 61 69 6e 74 61 69 6e 65 |system.m|aintaine|
|000017a0| 72 20 61 73 6b 69 6e 67 | 20 74 68 65 6d 20 74 6f |r asking| them to|
|000017b0| 20 75 73 65 20 74 68 65 | 20 6e 65 77 20 6e 61 6d | use the| new nam|
|000017c0| 69 6e 67 20 63 6f 6e 76 | 65 6e 74 69 6f 6e 20 69 |ing conv|ention i|
|000017d0| 6e 20 74 68 65 69 72 20 | 6e 65 78 74 0a 72 65 6c |n their |next.rel|
|000017e0| 65 61 73 65 2e 0a 0a 43 | 68 61 6e 67 65 73 20 66 |ease...C|hanges f|
|000017f0| 72 6f 6d 20 76 65 72 73 | 69 6f 6e 20 31 2e 36 20 |rom vers|ion 1.6 |
|00001800| 74 6f 20 31 2e 37 0a 0a | 09 43 68 61 6e 67 65 64 |to 1.7..|.Changed|
|00001810| 20 2d 56 20 6f 70 74 69 | 6f 6e 20 74 6f 20 63 61 | -V opti|on to ca|
|00001820| 75 73 65 20 76 65 72 62 | 6f 73 65 20 6f 75 74 70 |use verb|ose outp|
|00001830| 75 74 2e 20 20 55 73 69 | 6e 67 20 2d 56 0a 09 6d |ut. Usi|ng -V..m|
|00001840| 6f 72 65 20 74 68 61 6e | 20 6f 6e 63 65 20 72 65 |ore than| once re|
|00001850| 73 75 6c 74 73 20 69 6e | 20 74 68 65 20 73 61 6d |sults in| the sam|
|00001860| 65 20 6f 75 74 70 75 74 | 20 62 75 74 20 69 6e 68 |e output| but inh|
|00001870| 69 62 69 74 73 0a 09 65 | 78 65 63 75 74 69 6f 6e |ibits..e|xecution|
|00001880| 20 6f 66 20 66 73 2d 73 | 70 65 63 69 66 69 63 20 | of fs-s|pecific |
|00001890| 70 72 6f 67 72 61 6d 73 | 20 28 69 2e 65 2e 20 64 |programs| (i.e. d|
|000018a0| 65 62 75 67 20 6d 6f 64 | 65 29 2e 0a 0a 09 4c 6f |ebug mod|e)....Lo|
|000018b0| 6f 6b 20 66 6f 72 20 66 | 69 6c 65 20 73 79 73 74 |ok for f|ile syst|
|000018c0| 65 6d 2d 73 70 65 63 69 | 66 69 63 20 70 72 6f 67 |em-speci|fic prog|
|000018d0| 72 61 6d 73 20 69 6e 20 | 2f 65 74 63 2f 66 73 20 |rams in |/etc/fs |
|000018e0| 66 69 72 73 74 2c 0a 09 | 74 68 65 6e 20 69 6e 20 |first,..|then in |
|000018f0| 2f 65 74 63 20 61 6e 64 | 20 66 69 6e 61 6c 6c 79 |/etc and| finally|
|00001900| 20 69 6e 20 74 68 65 20 | 75 73 65 72 27 73 20 50 | in the |user's P|
|00001910| 41 54 48 2e 20 20 55 73 | 65 20 74 68 69 73 0a 09 |ATH. Us|e this..|
|00001920| 74 6f 20 72 65 64 75 63 | 65 20 73 6f 6d 65 20 6f |to reduc|e some o|
|00001930| 66 20 74 68 65 20 63 6c | 75 74 74 65 72 20 69 6e |f the cl|utter in|
|00001940| 20 2f 65 74 63 2e 0a 0a | 09 49 67 6e 6f 72 65 20 | /etc...|.Ignore |
|00001950| 49 53 4f 39 36 36 30 20 | 66 69 6c 65 20 73 79 73 |ISO9660 |file sys|
|00001960| 74 65 6d 73 20 77 68 65 | 6e 20 63 68 65 63 6b 69 |tems whe|n checki|
|00001970| 6e 67 20 61 6c 6c 20 73 | 79 73 74 65 6d 73 2e 0a |ng all s|ystems..|
|00001980| 0a 09 41 6c 6c 6f 77 20 | 66 69 6c 65 20 73 79 73 |..Allow |file sys|
|00001990| 74 65 6d 73 20 74 6f 20 | 62 65 20 73 70 65 63 69 |tems to |be speci|
|000019a0| 66 69 65 64 20 77 69 74 | 68 20 65 69 74 68 65 72 |fied wit|h either|
|000019b0| 20 74 68 65 20 64 65 76 | 69 63 65 0a 09 6e 61 6d | the dev|ice..nam|
|000019c0| 65 20 6f 72 20 74 68 65 | 20 6d 6f 75 6e 74 20 70 |e or the| mount p|
|000019d0| 6f 69 6e 74 2e 0a 0a 09 | 52 65 74 75 72 6e 20 6d |oint....|Return m|
|000019e0| 65 61 6e 69 6e 67 66 75 | 6c 20 65 78 69 74 20 63 |eaningfu|l exit c|
|000019f0| 6f 64 65 73 2e 20 20 53 | 65 65 20 74 68 65 20 6d |odes. S|ee the m|
|00001a00| 61 6e 75 61 6c 20 70 61 | 67 65 73 20 66 6f 72 0a |anual pa|ges for.|
|00001a10| 09 64 65 74 61 69 6c 73 | 2e 0a 0a 43 68 61 6e 67 |.details|...Chang|
|00001a20| 65 73 20 66 72 6f 6d 20 | 76 65 72 73 69 6f 6e 20 |es from |version |
|00001a30| 31 2e 30 20 74 6f 20 31 | 2e 36 20 28 6d 6f 73 74 |1.0 to 1|.6 (most|
|00001a40| 20 62 79 20 46 72 65 64 | 20 4e 2e 20 76 61 6e 20 | by Fred| N. van |
|00001a50| 4b 65 6d 70 65 6e 2c 0a | 77 61 6c 74 6a 65 40 75 |Kempen,.|waltje@u|
|00001a60| 77 61 6c 74 2e 6e 6c 2e | 6d 75 67 6e 65 74 2e 6f |walt.nl.|mugnet.o|
|00001a70| 72 67 29 0a 0a 09 43 68 | 61 6e 67 65 64 20 2d 46 |rg)...Ch|anged -F|
|00001a80| 20 6f 70 74 69 6f 6e 20 | 74 6f 20 2d 74 20 74 6f | option |to -t to|
|00001a90| 20 62 65 20 63 6f 6e 73 | 69 73 74 65 6e 74 20 77 | be cons|istent w|
|00001aa0| 69 74 68 20 6d 6f 75 6e | 74 28 38 29 2e 0a 0a 09 |ith moun|t(8)....|
|00001ab0| 41 64 64 65 64 20 2d 41 | 20 28 63 68 65 63 6b 20 |Added -A| (check |
|00001ac0| 61 6c 6c 29 20 6f 70 74 | 69 6f 6e 20 66 6f 72 20 |all) opt|ion for |
|00001ad0| 66 73 63 6b 28 38 29 2e | 0a 0a 09 41 6c 6c 6f 77 |fsck(8).|...Allow|
|00001ae0| 20 22 62 6c 6f 63 6b 73 | 22 20 70 61 72 61 6d 65 | "blocks|" parame|
|00001af0| 74 65 72 20 74 6f 20 62 | 65 20 6f 6d 69 74 74 65 |ter to b|e omitte|
|00001b00| 64 20 66 6f 72 20 6d 6b | 66 73 28 38 29 2e 0a 0a |d for mk|fs(8)...|
|00001b10| 44 61 76 69 64 20 45 6e | 67 65 6c 0a 64 61 76 69 |David En|gel.davi|
|00001b20| 64 40 6f 64 73 2e 63 6f | 6d 0a 00 00 00 00 00 00 |d@ods.co|m.......|
|00001b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c00| 62 6f 6f 74 75 74 69 6c | 73 2f 66 73 75 74 69 6c |bootutil|s/fsutil|
|00001c10| 2f 66 73 63 6b 2e 38 00 | 00 00 00 00 00 00 00 00 |/fsck.8.|........|
|00001c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c60| 00 00 00 00 20 20 20 34 | 34 34 20 00 20 20 20 33 |.... 4|44 . 3|
|00001c70| 31 30 20 00 20 20 20 20 | 31 35 20 00 20 20 20 20 |10 . |15 . |
|00001c80| 20 20 20 36 31 35 34 20 | 20 35 34 31 34 34 35 35 | 6154 | 5414455|
|00001c90| 36 30 30 20 20 31 34 30 | 35 36 00 20 30 00 00 00 |600 140|56. 0...|
|00001ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d00| 00 75 73 74 61 72 20 20 | 00 6c 69 6e 75 78 00 00 |.ustar |.linux..|
|00001d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d20| 00 00 00 00 00 00 00 00 | 00 6c 69 6e 75 78 00 00 |........|.linux..|
|00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e00| 2e 5c 22 20 2d 2a 2d 20 | 6e 72 6f 66 66 20 2d 2a |.\" -*- |nroff -*|
|00001e10| 2d 0a 2e 54 48 20 46 53 | 43 4b 20 38 20 22 4d 61 |-..TH FS|CK 8 "Ma|
|00001e20| 79 20 31 39 39 33 22 20 | 22 56 65 72 73 69 6f 6e |y 1993" |"Version|
|00001e30| 20 31 2e 37 22 0a 2e 53 | 48 20 4e 41 4d 45 0a 66 | 1.7"..S|H NAME.f|
|00001e40| 73 63 6b 20 5c 2d 20 63 | 68 65 63 6b 20 61 6e 64 |sck \- c|heck and|
|00001e50| 20 72 65 70 61 69 72 20 | 61 20 4c 69 6e 75 78 20 | repair |a Linux |
|00001e60| 66 69 6c 65 20 73 79 73 | 74 65 6d 0a 2e 53 48 20 |file sys|tem..SH |
|00001e70| 53 59 4e 4f 50 53 49 53 | 0a 2e 42 20 66 73 63 6b |SYNOPSIS|..B fsck|
|00001e80| 0a 5b 0a 2e 42 20 5c 2d | 41 0a 5d 0a 5b 0a 2e 42 |.[..B \-|A.].[..B|
|00001e90| 20 5c 2d 56 0a 5d 0a 5b | 0a 2e 42 20 5c 2d 74 0a | \-V.].[|..B \-t.|
|00001ea0| 2e 49 20 66 73 74 79 70 | 65 0a 5d 0a 5b 0a 2e 42 |.I fstyp|e.].[..B|
|00001eb0| 20 66 73 2d 6f 70 74 69 | 6f 6e 73 0a 5d 0a 2e 49 | fs-opti|ons.]..I|
|00001ec0| 20 66 69 6c 65 73 79 73 | 0a 2e 53 48 20 44 45 53 | filesys|..SH DES|
|00001ed0| 43 52 49 50 54 49 4f 4e | 0a 2e 42 20 66 73 63 6b |CRIPTION|..B fsck|
|00001ee0| 0a 69 73 20 75 73 65 64 | 20 74 6f 20 63 68 65 63 |.is used| to chec|
|00001ef0| 6b 20 61 6e 64 20 6f 70 | 74 69 6f 6e 61 6c 6c 79 |k and op|tionally|
|00001f00| 20 72 65 70 61 69 72 20 | 61 20 4c 69 6e 75 78 20 | repair |a Linux |
|00001f10| 66 69 6c 65 20 73 79 73 | 74 65 6d 2e 0a 2e 49 20 |file sys|tem...I |
|00001f20| 66 69 6c 65 73 79 73 0a | 69 73 20 65 69 74 68 65 |filesys.|is eithe|
|00001f30| 72 20 74 68 65 20 64 65 | 76 69 63 65 20 6e 61 6d |r the de|vice nam|
|00001f40| 65 20 28 65 2e 67 2e 20 | 2f 64 65 76 2f 68 64 61 |e (e.g. |/dev/hda|
|00001f50| 31 2c 20 2f 64 65 76 2f | 73 64 62 32 29 20 6f 72 |1, /dev/|sdb2) or|
|00001f60| 0a 74 68 65 20 6d 6f 75 | 6e 74 20 70 6f 69 6e 74 |.the mou|nt point|
|00001f70| 20 28 65 2e 67 2e 20 2f | 2c 20 2f 75 73 72 2c 20 | (e.g. /|, /usr, |
|00001f80| 2f 68 6f 6d 65 29 20 66 | 6f 72 20 74 68 65 20 66 |/home) f|or the f|
|00001f90| 69 6c 65 20 73 79 73 74 | 65 6d 2e 0a 2e 50 50 0a |ile syst|em...PP.|
|00001fa0| 54 68 65 20 65 78 69 74 | 20 63 6f 64 65 20 72 65 |The exit| code re|
|00001fb0| 74 75 72 6e 65 64 20 62 | 79 0a 2e 42 20 66 73 63 |turned b|y..B fsc|
|00001fc0| 6b 0a 69 73 20 74 68 65 | 20 73 75 6d 20 6f 66 20 |k.is the| sum of |
|00001fd0| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 63 6f |the foll|owing co|
|00001fe0| 6e 64 69 74 69 6f 6e 73 | 3a 0a 2e 62 72 0a 5c 09 |nditions|:..br.\.|
|00001ff0| 30 5c 09 5c 2d 5c 20 4e | 6f 20 65 72 72 6f 72 73 |0\.\-\ N|o errors|
|00002000| 0a 2e 62 72 0a 5c 09 31 | 5c 09 5c 2d 5c 20 46 69 |..br.\.1|\.\-\ Fi|
|00002010| 6c 65 20 73 79 73 74 65 | 6d 20 65 72 72 6f 72 73 |le syste|m errors|
|00002020| 20 63 6f 72 72 65 63 74 | 65 64 0a 2e 62 72 0a 5c | correct|ed..br.\|
|00002030| 09 32 5c 09 5c 2d 5c 20 | 46 69 6c 65 20 73 79 73 |.2\.\-\ |File sys|
|00002040| 74 65 6d 20 65 72 72 6f | 72 73 20 63 6f 72 72 65 |tem erro|rs corre|
|00002050| 63 74 65 64 2c 20 73 79 | 73 74 65 6d 20 73 68 6f |cted, sy|stem sho|
|00002060| 75 6c 64 0a 2e 62 72 0a | 5c 09 5c 09 5c 20 5c 20 |uld..br.|\.\.\ \ |
|00002070| 62 65 20 72 65 62 6f 6f | 74 65 64 20 69 66 20 66 |be reboo|ted if f|
|00002080| 69 6c 65 20 73 79 73 74 | 65 6d 20 77 61 73 20 6d |ile syst|em was m|
|00002090| 6f 75 6e 74 65 64 0a 2e | 62 72 0a 5c 09 34 5c 09 |ounted..|br.\.4\.|
|000020a0| 5c 2d 5c 20 46 69 6c 65 | 20 73 79 73 74 65 6d 20 |\-\ File| system |
|000020b0| 65 72 72 6f 72 73 20 6c | 65 66 74 20 75 6e 63 6f |errors l|eft unco|
|000020c0| 72 72 65 63 74 65 64 0a | 2e 62 72 0a 5c 09 38 5c |rrected.|.br.\.8\|
|000020d0| 09 5c 2d 5c 20 4f 70 65 | 72 61 74 69 6f 6e 61 6c |.\-\ Ope|rational|
|000020e0| 20 65 72 72 6f 72 0a 2e | 62 72 0a 5c 09 31 36 5c | error..|br.\.16\|
|000020f0| 09 5c 2d 5c 20 55 73 61 | 67 65 20 6f 72 20 73 79 |.\-\ Usa|ge or sy|
|00002100| 6e 74 61 78 20 65 72 72 | 6f 72 0a 2e 62 72 0a 5c |ntax err|or..br.\|
|00002110| 09 31 32 38 5c 09 5c 2d | 5c 20 53 68 61 72 65 64 |.128\.\-|\ Shared|
|00002120| 20 6c 69 62 72 61 72 79 | 20 65 72 72 6f 72 0a 2e | library| error..|
|00002130| 62 72 0a 54 68 65 20 65 | 78 69 74 20 63 6f 64 65 |br.The e|xit code|
|00002140| 20 72 65 74 75 72 6e 65 | 64 20 77 68 65 6e 20 61 | returne|d when a|
|00002150| 6c 6c 20 66 69 6c 65 20 | 73 79 73 74 65 6d 73 20 |ll file |systems |
|00002160| 61 72 65 20 63 68 65 63 | 6b 65 64 20 75 73 69 6e |are chec|ked usin|
|00002170| 67 20 74 68 65 0a 2e 42 | 20 2d 41 0a 6f 70 74 69 |g the..B| -A.opti|
|00002180| 6f 6e 20 69 73 20 74 68 | 65 20 62 69 74 2d 77 69 |on is th|e bit-wi|
|00002190| 73 65 20 4f 52 20 6f 66 | 20 74 68 65 20 65 78 69 |se OR of| the exi|
|000021a0| 74 20 63 6f 64 65 73 20 | 66 6f 72 20 65 61 63 68 |t codes |for each|
|000021b0| 0a 66 69 6c 65 20 73 79 | 73 74 65 6d 20 74 68 61 |.file sy|stem tha|
|000021c0| 74 20 69 73 20 63 68 65 | 63 6b 65 64 2e 0a 2e 50 |t is che|cked...P|
|000021d0| 50 0a 49 6e 20 61 63 74 | 75 61 6c 69 74 79 2c 0a |P.In act|uality,.|
|000021e0| 2e 42 20 66 73 63 6b 0a | 69 73 20 73 69 6d 70 6c |.B fsck.|is simpl|
|000021f0| 79 20 61 20 66 72 6f 6e | 74 2d 65 6e 64 20 66 6f |y a fron|t-end fo|
|00002200| 72 20 74 68 65 20 76 61 | 72 69 6f 75 73 20 66 69 |r the va|rious fi|
|00002210| 6c 65 20 73 79 73 74 65 | 6d 20 63 68 65 63 6b 65 |le syste|m checke|
|00002220| 72 73 0a 28 5c 66 42 66 | 73 63 6b 5c 66 52 2e 5c |rs.(\fBf|sck\fR.\|
|00002230| 66 49 66 73 74 79 70 65 | 5c 66 52 29 0a 61 76 61 |fIfstype|\fR).ava|
|00002240| 69 6c 61 62 6c 65 20 75 | 6e 64 65 72 20 4c 69 6e |ilable u|nder Lin|
|00002250| 75 78 2e 0a 54 68 65 20 | 66 69 6c 65 20 73 79 73 |ux..The |file sys|
|00002260| 74 65 6d 2d 73 70 65 63 | 69 66 69 63 20 63 68 65 |tem-spec|ific che|
|00002270| 63 6b 65 72 20 69 73 20 | 73 65 61 72 63 68 65 64 |cker is |searched|
|00002280| 20 66 6f 72 20 69 6e 20 | 2f 65 74 63 2f 66 73 20 | for in |/etc/fs |
|00002290| 66 69 72 73 74 2c 0a 74 | 68 65 6e 20 69 6e 20 2f |first,.t|hen in /|
|000022a0| 65 74 63 20 61 6e 64 20 | 66 69 6e 61 6c 6c 79 20 |etc and |finally |
|000022b0| 69 6e 20 74 68 65 20 64 | 69 72 65 63 74 6f 72 69 |in the d|irectori|
|000022c0| 65 73 20 6c 69 73 74 65 | 64 20 69 6e 20 74 68 65 |es liste|d in the|
|000022d0| 20 50 41 54 48 0a 65 6e | 76 69 72 6f 6e 6d 65 6e | PATH.en|vironmen|
|000022e0| 74 20 76 61 72 69 61 62 | 6c 65 2e 0a 50 6c 65 61 |t variab|le..Plea|
|000022f0| 73 65 20 73 65 65 20 74 | 68 65 20 66 69 6c 65 20 |se see t|he file |
|00002300| 73 79 73 74 65 6d 2d 73 | 70 65 63 69 66 69 63 20 |system-s|pecific |
|00002310| 63 68 65 63 6b 65 72 20 | 6d 61 6e 75 61 6c 20 70 |checker |manual p|
|00002320| 61 67 65 73 20 66 6f 72 | 0a 66 75 72 74 68 65 72 |ages for|.further|
|00002330| 20 64 65 74 61 69 6c 73 | 2e 0a 2e 53 48 20 4f 50 | details|...SH OP|
|00002340| 54 49 4f 4e 53 0a 2e 54 | 50 0a 2e 42 20 2d 41 0a |TIONS..T|P..B -A.|
|00002350| 57 61 6c 6b 20 74 68 72 | 6f 75 67 68 20 74 68 65 |Walk thr|ough the|
|00002360| 0a 2e 49 20 2f 65 74 63 | 2f 66 73 74 61 62 0a 66 |..I /etc|/fstab.f|
|00002370| 69 6c 65 20 61 6e 64 20 | 74 72 79 20 74 6f 20 63 |ile and |try to c|
|00002380| 68 65 63 6b 20 61 6c 6c | 20 66 69 6c 65 20 73 79 |heck all| file sy|
|00002390| 73 74 65 6d 73 20 69 6e | 20 6f 6e 65 20 72 75 6e |stems in| one run|
|000023a0| 2e 20 20 54 68 69 73 20 | 6f 70 74 69 6f 6e 20 69 |. This |option i|
|000023b0| 73 0a 74 79 70 69 63 61 | 6c 6c 79 20 75 73 65 64 |s.typica|lly used|
|000023c0| 20 66 72 6f 6d 20 74 68 | 65 0a 2e 49 20 2f 65 74 | from th|e..I /et|
|000023d0| 63 2f 72 63 0a 73 79 73 | 74 65 6d 20 69 6e 69 74 |c/rc.sys|tem init|
|000023e0| 61 6c 69 7a 61 74 69 6f | 6e 20 66 69 6c 65 2c 20 |alizatio|n file, |
|000023f0| 69 6e 73 74 65 61 64 20 | 6f 66 20 6d 75 6c 74 69 |instead |of multi|
|00002400| 70 6c 65 20 63 6f 6d 6d | 61 6e 64 73 20 66 6f 72 |ple comm|ands for|
|00002410| 20 63 68 65 63 6b 69 6e | 67 0a 61 20 73 69 6e 67 | checkin|g.a sing|
|00002420| 6c 65 20 66 69 6c 65 20 | 73 79 73 74 65 6d 2e 20 |le file |system. |
|00002430| 20 4e 6f 74 65 2c 20 74 | 68 61 74 20 77 69 74 68 | Note, t|hat with|
|00002440| 20 74 68 69 73 20 6f 70 | 74 69 6f 6e 2c 20 79 6f | this op|tion, yo|
|00002450| 75 20 63 61 6e 6e 6f 74 | 20 67 69 76 65 0a 74 68 |u cannot| give.th|
|00002460| 65 0a 2e 49 20 66 69 6c | 65 73 79 73 0a 61 72 67 |e..I fil|esys.arg|
|00002470| 75 6d 65 6e 74 20 61 73 | 20 77 65 6c 6c 2e 0a 2e |ument as| well...|
|00002480| 54 50 0a 2e 42 20 2d 56 | 0a 50 72 6f 64 75 63 65 |TP..B -V|.Produce|
|00002490| 20 76 65 72 62 6f 73 65 | 20 6f 75 74 70 75 74 2c | verbose| output,|
|000024a0| 20 69 6e 63 6c 75 64 69 | 6e 67 20 61 6c 6c 20 66 | includi|ng all f|
|000024b0| 69 6c 65 20 73 79 73 74 | 65 6d 2d 73 70 65 63 69 |ile syst|em-speci|
|000024c0| 66 69 63 20 63 6f 6d 6d | 61 6e 64 73 0a 74 68 61 |fic comm|ands.tha|
|000024d0| 74 20 61 72 65 20 65 78 | 65 63 75 74 65 64 2e 0a |t are ex|ecuted..|
|000024e0| 53 70 65 63 69 66 79 69 | 6e 67 20 74 68 69 73 20 |Specifyi|ng this |
|000024f0| 6f 70 74 69 6f 6e 20 6d | 6f 72 65 20 74 68 61 6e |option m|ore than|
|00002500| 20 6f 6e 63 65 20 69 6e | 68 69 62 69 74 73 20 65 | once in|hibits e|
|00002510| 78 65 63 75 74 69 6f 6e | 20 6f 66 20 61 6e 79 0a |xecution| of any.|
|00002520| 66 69 6c 65 20 73 79 73 | 74 65 6d 2d 73 70 65 63 |file sys|tem-spec|
|00002530| 69 66 69 63 20 63 6f 6d | 6d 61 6e 64 73 2e 0a 54 |ific com|mands..T|
|00002540| 68 69 73 20 69 73 20 72 | 65 61 6c 6c 79 20 6f 6e |his is r|eally on|
|00002550| 6c 79 20 75 73 65 66 75 | 6c 20 66 6f 72 20 74 65 |ly usefu|l for te|
|00002560| 73 74 69 6e 67 2e 0a 2e | 54 50 0a 2e 42 49 20 2d |sting...|TP..BI -|
|00002570| 74 20 5c 20 66 73 74 79 | 70 65 0a 53 70 65 63 69 |t \ fsty|pe.Speci|
|00002580| 66 69 65 73 20 74 68 65 | 20 74 79 70 65 20 6f 66 |fies the| type of|
|00002590| 20 66 69 6c 65 20 73 79 | 73 74 65 6d 20 74 6f 20 | file sy|stem to |
|000025a0| 62 65 20 63 68 65 63 6b | 65 64 2e 0a 49 66 20 6e |be check|ed..If n|
|000025b0| 6f 74 20 73 70 65 63 69 | 66 69 65 64 2c 20 74 68 |ot speci|fied, th|
|000025c0| 65 20 74 79 70 65 20 69 | 73 20 64 65 64 75 63 65 |e type i|s deduce|
|000025d0| 64 20 62 79 20 73 65 61 | 72 63 68 69 6e 67 20 66 |d by sea|rching f|
|000025e0| 6f 72 0a 2e 49 20 66 69 | 6c 65 73 79 73 0a 69 6e |or..I fi|lesys.in|
|000025f0| 0a 2e 49 20 2f 65 74 63 | 2f 66 73 74 61 62 0a 61 |..I /etc|/fstab.a|
|00002600| 6e 64 20 75 73 69 6e 67 | 20 74 68 65 20 63 6f 72 |nd using| the cor|
|00002610| 72 65 73 70 6f 6e 64 69 | 6e 67 20 65 6e 74 72 79 |respondi|ng entry|
|00002620| 2e 0a 49 66 20 74 68 65 | 20 74 79 70 65 20 63 61 |..If the| type ca|
|00002630| 6e 20 6e 6f 74 20 62 65 | 20 64 65 64 75 63 65 64 |n not be| deduced|
|00002640| 2c 20 74 68 65 20 64 65 | 66 61 75 6c 74 20 66 69 |, the de|fault fi|
|00002650| 6c 65 20 73 79 73 74 65 | 6d 20 74 79 70 65 0a 28 |le syste|m type.(|
|00002660| 63 75 72 72 65 6e 74 6c | 79 20 6d 69 6e 69 78 29 |currentl|y minix)|
|00002670| 20 69 73 20 75 73 65 64 | 2e 0a 2e 54 50 0a 2e 42 | is used|...TP..B|
|00002680| 20 66 73 2d 6f 70 74 69 | 6f 6e 73 0a 46 69 6c 65 | fs-opti|ons.File|
|00002690| 20 73 79 73 74 65 6d 2d | 73 70 65 63 69 66 69 63 | system-|specific|
|000026a0| 20 6f 70 74 69 6f 6e 73 | 20 74 6f 20 62 65 20 70 | options| to be p|
|000026b0| 61 73 73 65 64 20 74 6f | 20 74 68 65 20 72 65 61 |assed to| the rea|
|000026c0| 6c 20 66 69 6c 65 20 0a | 73 79 73 74 65 6d 20 63 |l file .|system c|
|000026d0| 68 65 63 6b 65 72 2e 0a | 41 6c 74 68 6f 75 67 68 |hecker..|Although|
|000026e0| 20 6e 6f 74 20 67 75 61 | 72 61 6e 74 65 65 64 2c | not gua|ranteed,|
|000026f0| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 6f | the fol|lowing o|
|00002700| 70 74 69 6f 6e 73 20 61 | 72 65 20 73 75 70 70 6f |ptions a|re suppo|
|00002710| 72 74 65 64 0a 62 79 20 | 6d 6f 73 74 20 66 69 6c |rted.by |most fil|
|00002720| 65 20 73 79 73 74 65 6d | 20 63 68 65 63 6b 65 72 |e system| checker|
|00002730| 73 2e 0a 2e 54 50 0a 2e | 49 20 2d 61 0a 41 75 74 |s...TP..|I -a.Aut|
|00002740| 6f 6d 61 74 69 63 61 6c | 6c 79 20 72 65 70 61 69 |omatical|ly repai|
|00002750| 72 20 74 68 65 20 66 69 | 6c 65 20 73 79 73 74 65 |r the fi|le syste|
|00002760| 6d 20 77 69 74 68 6f 75 | 74 20 61 6e 79 20 71 75 |m withou|t any qu|
|00002770| 65 73 74 69 6f 6e 73 20 | 28 75 73 65 0a 74 68 69 |estions |(use.thi|
|00002780| 73 20 6f 70 74 69 6f 6e | 20 77 69 74 68 20 63 61 |s option| with ca|
|00002790| 75 74 69 6f 6e 29 2e 0a | 2e 54 50 0a 2e 49 20 2d |ution)..|.TP..I -|
|000027a0| 6c 0a 4c 69 73 74 20 61 | 6c 6c 20 74 68 65 20 66 |l.List a|ll the f|
|000027b0| 69 6c 65 20 6e 61 6d 65 | 73 20 69 6e 20 74 68 65 |ile name|s in the|
|000027c0| 20 66 69 6c 65 20 73 79 | 73 74 65 6d 2e 0a 2e 54 | file sy|stem...T|
|000027d0| 50 0a 2e 49 20 2d 72 0a | 49 6e 74 65 72 61 63 74 |P..I -r.|Interact|
|000027e0| 69 76 65 6c 79 20 72 65 | 70 61 69 72 20 74 68 65 |ively re|pair the|
|000027f0| 20 66 69 6c 65 20 73 79 | 73 74 65 6d 20 28 61 73 | file sy|stem (as|
|00002800| 6b 20 66 6f 72 20 63 6f | 6e 66 69 72 6d 61 74 69 |k for co|nfirmati|
|00002810| 6f 6e 73 29 2e 0a 2e 54 | 50 0a 2e 49 20 2d 73 0a |ons)...T|P..I -s.|
|00002820| 4c 69 73 74 20 74 68 65 | 20 73 75 70 65 72 20 62 |List the| super b|
|00002830| 6c 6f 63 6b 20 62 65 66 | 6f 72 65 20 63 68 65 63 |lock bef|ore chec|
|00002840| 6b 69 6e 67 20 74 68 65 | 20 66 69 6c 65 20 73 79 |king the| file sy|
|00002850| 73 74 65 6d 2e 0a 2e 54 | 50 0a 2e 49 20 2d 76 0a |stem...T|P..I -v.|
|00002860| 50 72 6f 64 75 63 65 20 | 76 65 72 62 6f 73 65 20 |Produce |verbose |
|00002870| 6f 75 74 70 75 74 2e 0a | 2e 53 48 20 42 55 47 53 |output..|.SH BUGS|
|00002880| 0a 41 6c 6c 20 67 65 6e | 65 72 69 63 20 6f 70 74 |.All gen|eric opt|
|00002890| 69 6f 6e 73 20 6d 75 73 | 74 20 70 72 65 63 65 64 |ions mus|t preced|
|000028a0| 65 20 61 6e 64 20 6e 6f | 74 20 62 65 20 63 6f 6d |e and no|t be com|
|000028b0| 62 69 6e 65 64 20 77 69 | 74 68 0a 66 69 6c 65 20 |bined wi|th.file |
|000028c0| 73 79 73 74 65 6d 2d 73 | 70 65 63 69 66 69 63 20 |system-s|pecific |
|000028d0| 6f 70 74 69 6f 6e 73 2e | 0a 53 6f 6d 65 20 66 69 |options.|.Some fi|
|000028e0| 6c 65 20 73 79 73 74 65 | 6d 2d 73 70 65 63 69 66 |le syste|m-specif|
|000028f0| 69 63 20 70 72 6f 67 72 | 61 6d 73 20 64 6f 20 6e |ic progr|ams do n|
|00002900| 6f 74 20 73 75 70 70 6f | 72 74 20 74 68 65 0a 2e |ot suppo|rt the..|
|00002910| 49 20 2d 76 0a 28 76 65 | 72 62 6f 73 65 29 20 6f |I -v.(ve|rbose) o|
|00002920| 70 74 69 6f 6e 2c 20 6e | 6f 72 20 72 65 74 75 72 |ption, n|or retur|
|00002930| 6e 20 6d 65 61 6e 69 6e | 67 66 75 6c 20 65 78 69 |n meanin|gful exi|
|00002940| 74 20 63 6f 64 65 73 2e | 0a 2e 53 48 20 41 55 54 |t codes.|..SH AUT|
|00002950| 48 4f 52 53 0a 44 61 76 | 69 64 20 45 6e 67 65 6c |HORS.Dav|id Engel|
|00002960| 20 28 64 61 76 69 64 40 | 6f 64 73 2e 63 6f 6d 29 | (david@|ods.com)|
|00002970| 0a 2e 62 72 0a 46 72 65 | 64 20 4e 2e 20 76 61 6e |..br.Fre|d N. van|
|00002980| 20 4b 65 6d 70 65 6e 20 | 28 77 61 6c 74 6a 65 40 | Kempen |(waltje@|
|00002990| 75 77 61 6c 74 2e 6e 6c | 2e 6d 75 67 6e 65 74 2e |uwalt.nl|.mugnet.|
|000029a0| 6f 72 67 29 0a 2e 62 72 | 0a 54 68 65 20 6d 61 6e |org)..br|.The man|
|000029b0| 75 61 6c 20 70 61 67 65 | 20 77 61 73 20 73 68 61 |ual page| was sha|
|000029c0| 6d 65 6c 65 73 73 6c 79 | 20 61 64 61 70 74 65 64 |melessly| adapted|
|000029d0| 20 66 72 6f 6d 20 52 65 | 6d 79 20 43 61 72 64 27 | from Re|my Card'|
|000029e0| 73 20 76 65 72 73 69 6f | 6e 0a 66 6f 72 20 74 68 |s versio|n.for th|
|000029f0| 65 20 65 78 74 32 20 66 | 69 6c 65 20 73 79 73 74 |e ext2 f|ile syst|
|00002a00| 65 6d 2e 0a 2e 53 48 20 | 53 45 45 20 41 4c 53 4f |em...SH |SEE ALSO|
|00002a10| 0a 2e 42 52 20 6d 6b 66 | 73 20 28 38 29 2c 0a 2e |..BR mkf|s (8),..|
|00002a20| 42 52 20 66 73 63 6b 2e | 6d 69 6e 69 78 20 28 38 |BR fsck.|minix (8|
|00002a30| 29 2c 0a 2e 42 52 20 66 | 73 63 6b 2e 65 78 74 20 |),..BR f|sck.ext |
|00002a40| 28 38 29 2c 0a 2e 42 52 | 20 66 73 63 6b 2e 65 78 |(8),..BR| fsck.ex|
|00002a50| 74 32 20 28 38 29 2c 0a | 2e 42 52 20 66 73 63 6b |t2 (8),.|.BR fsck|
|00002a60| 2e 78 69 61 66 73 20 28 | 38 29 2e 0a 00 00 00 00 |.xiafs (|8)......|
|00002a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c00| 62 6f 6f 74 75 74 69 6c | 73 2f 66 73 75 74 69 6c |bootutil|s/fsutil|
|00002c10| 2f 6d 6b 66 73 2e 38 00 | 00 00 00 00 00 00 00 00 |/mkfs.8.|........|
|00002c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c60| 00 00 00 00 20 20 20 34 | 34 34 20 00 20 20 20 33 |.... 4|44 . 3|
|00002c70| 31 30 20 00 20 20 20 20 | 31 35 20 00 20 20 20 20 |10 . |15 . |
|00002c80| 20 20 20 35 30 31 33 20 | 20 35 34 31 34 34 35 35 | 5013 | 5414455|
|00002c90| 36 30 30 20 20 31 34 30 | 36 31 00 20 30 00 00 00 |600 140|61. 0...|
|00002ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d00| 00 75 73 74 61 72 20 20 | 00 6c 69 6e 75 78 00 00 |.ustar |.linux..|
|00002d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d20| 00 00 00 00 00 00 00 00 | 00 6c 69 6e 75 78 00 00 |........|.linux..|
|00002d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e00| 2e 5c 22 20 2d 2a 2d 20 | 6e 72 6f 66 66 20 2d 2a |.\" -*- |nroff -*|
|00002e10| 2d 0a 2e 54 48 20 4d 4b | 46 53 20 38 20 22 4d 61 |-..TH MK|FS 8 "Ma|
|00002e20| 79 20 31 39 39 33 22 20 | 22 56 65 72 73 69 6f 6e |y 1993" |"Version|
|00002e30| 20 31 2e 37 22 0a 2e 53 | 48 20 4e 41 4d 45 0a 6d | 1.7"..S|H NAME.m|
|00002e40| 6b 66 73 20 5c 2d 20 62 | 75 69 6c 64 20 61 20 4c |kfs \- b|uild a L|
|00002e50| 69 6e 75 78 20 66 69 6c | 65 20 73 79 73 74 65 6d |inux fil|e system|
|00002e60| 0a 2e 53 48 20 53 59 4e | 4f 50 53 49 53 0a 2e 42 |..SH SYN|OPSIS..B|
|00002e70| 20 6d 6b 66 73 0a 5b 0a | 2e 42 20 5c 2d 56 0a 5d | mkfs.[.|.B \-V.]|
|00002e80| 0a 5b 0a 2e 42 20 5c 2d | 74 0a 2e 49 20 66 73 74 |.[..B \-|t..I fst|
|00002e90| 79 70 65 0a 5d 0a 5b 0a | 2e 42 20 66 73 2d 6f 70 |ype.].[.|.B fs-op|
|00002ea0| 74 69 6f 6e 73 0a 5d 0a | 2e 49 20 66 69 6c 65 73 |tions.].|.I files|
|00002eb0| 79 73 0a 5b 0a 2e 49 20 | 62 6c 6f 63 6b 73 0a 5d |ys.[..I |blocks.]|
|00002ec0| 0a 2e 53 48 20 44 45 53 | 43 52 49 50 54 49 4f 4e |..SH DES|CRIPTION|
|00002ed0| 0a 2e 42 20 6d 6b 66 73 | 0a 69 73 20 75 73 65 64 |..B mkfs|.is used|
|00002ee0| 20 74 6f 20 62 75 69 6c | 64 20 61 20 4c 69 6e 75 | to buil|d a Linu|
|00002ef0| 78 20 66 69 6c 65 20 73 | 79 73 74 65 6d 20 6f 6e |x file s|ystem on|
|00002f00| 20 61 20 64 65 76 69 63 | 65 2c 20 75 73 75 61 6c | a devic|e, usual|
|00002f10| 6c 79 0a 61 20 68 61 72 | 64 20 64 69 73 6b 20 70 |ly.a har|d disk p|
|00002f20| 61 72 74 69 74 69 6f 6e | 2e 0a 2e 49 20 66 69 6c |artition|...I fil|
|00002f30| 65 73 79 73 0a 69 73 20 | 65 69 74 68 65 72 20 74 |esys.is |either t|
|00002f40| 68 65 20 64 65 76 69 63 | 65 20 6e 61 6d 65 20 28 |he devic|e name (|
|00002f50| 65 2e 67 2e 20 2f 64 65 | 76 2f 68 64 61 31 2c 20 |e.g. /de|v/hda1, |
|00002f60| 2f 64 65 76 2f 73 64 62 | 32 29 20 6f 72 0a 74 68 |/dev/sdb|2) or.th|
|00002f70| 65 20 6d 6f 75 6e 74 20 | 70 6f 69 6e 74 20 28 65 |e mount |point (e|
|00002f80| 2e 67 2e 20 2f 2c 20 2f | 75 73 72 2c 20 2f 68 6f |.g. /, /|usr, /ho|
|00002f90| 6d 65 29 20 66 6f 72 20 | 74 68 65 20 66 69 6c 65 |me) for |the file|
|00002fa0| 20 73 79 73 74 65 6d 2e | 0a 2e 49 20 62 6c 6f 63 | system.|..I bloc|
|00002fb0| 6b 73 0a 69 73 20 74 68 | 65 20 6e 75 6d 62 65 72 |ks.is th|e number|
|00002fc0| 20 6f 66 20 62 6c 6f 63 | 6b 73 20 74 6f 20 62 65 | of bloc|ks to be|
|00002fd0| 20 75 73 65 64 20 66 6f | 72 20 74 68 65 20 66 69 | used fo|r the fi|
|00002fe0| 6c 65 20 73 79 73 74 65 | 6d 2e 0a 2e 50 50 0a 54 |le syste|m...PP.T|
|00002ff0| 68 65 20 65 78 69 74 20 | 63 6f 64 65 20 72 65 74 |he exit |code ret|
|00003000| 75 72 6e 65 64 20 62 79 | 0a 2e 42 20 6d 6b 66 73 |urned by|..B mkfs|
|00003010| 0a 69 73 20 74 68 65 20 | 73 75 6d 20 6f 66 20 74 |.is the |sum of t|
|00003020| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 63 6f 6e |he follo|wing con|
|00003030| 64 69 74 69 6f 6e 73 3a | 0a 2e 62 72 0a 5c 09 30 |ditions:|..br.\.0|
|00003040| 5c 09 5c 2d 5c 20 4e 6f | 20 65 72 72 6f 72 73 0a |\.\-\ No| errors.|
|00003050| 2e 62 72 0a 5c 09 38 5c | 09 5c 2d 5c 20 4f 70 65 |.br.\.8\|.\-\ Ope|
|00003060| 72 61 74 69 6f 6e 61 6c | 20 65 72 72 6f 72 0a 2e |rational| error..|
|00003070| 62 72 0a 5c 09 31 36 5c | 09 5c 2d 5c 20 55 73 61 |br.\.16\|.\-\ Usa|
|00003080| 67 65 20 6f 72 20 73 79 | 6e 74 61 78 20 65 72 72 |ge or sy|ntax err|
|00003090| 6f 72 0a 2e 62 72 0a 5c | 09 31 32 38 5c 09 5c 2d |or..br.\|.128\.\-|
|000030a0| 5c 20 53 68 61 72 65 64 | 20 6c 69 62 72 61 72 79 |\ Shared| library|
|000030b0| 20 65 72 72 6f 72 0a 2e | 50 50 0a 49 6e 20 61 63 | error..|PP.In ac|
|000030c0| 74 75 61 6c 69 74 79 2c | 0a 2e 42 20 6d 6b 66 73 |tuality,|..B mkfs|
|000030d0| 0a 69 73 20 73 69 6d 70 | 6c 79 20 61 20 66 72 6f |.is simp|ly a fro|
|000030e0| 6e 74 2d 65 6e 64 20 66 | 6f 72 20 74 68 65 20 76 |nt-end f|or the v|
|000030f0| 61 72 69 6f 75 73 20 66 | 69 6c 65 20 73 79 73 74 |arious f|ile syst|
|00003100| 65 6d 20 62 75 69 6c 64 | 65 72 73 0a 28 5c 66 42 |em build|ers.(\fB|
|00003110| 6d 6b 66 73 5c 66 52 2e | 5c 66 49 66 73 74 79 70 |mkfs\fR.|\fIfstyp|
|00003120| 65 5c 66 52 29 0a 61 76 | 61 69 6c 61 62 6c 65 20 |e\fR).av|ailable |
|00003130| 75 6e 64 65 72 20 4c 69 | 6e 75 78 2e 0a 54 68 65 |under Li|nux..The|
|00003140| 20 66 69 6c 65 20 73 79 | 73 74 65 6d 2d 73 70 65 | file sy|stem-spe|
|00003150| 63 69 66 69 63 20 62 75 | 69 6c 64 65 72 20 69 73 |cific bu|ilder is|
|00003160| 20 73 65 61 72 63 68 65 | 64 20 66 6f 72 20 69 6e | searche|d for in|
|00003170| 20 2f 65 74 63 2f 66 73 | 20 66 69 72 73 74 2c 0a | /etc/fs| first,.|
|00003180| 74 68 65 6e 20 69 6e 20 | 2f 65 74 63 20 61 6e 64 |then in |/etc and|
|00003190| 20 66 69 6e 61 6c 6c 79 | 20 69 6e 20 74 68 65 20 | finally| in the |
|000031a0| 64 69 72 65 63 74 6f 72 | 69 65 73 20 6c 69 73 74 |director|ies list|
|000031b0| 65 64 20 69 6e 20 74 68 | 65 20 50 41 54 48 0a 65 |ed in th|e PATH.e|
|000031c0| 6e 76 69 72 6f 6d 65 6e | 74 20 76 61 72 69 61 62 |nviromen|t variab|
|000031d0| 6c 65 2e 0a 50 6c 65 61 | 73 65 20 73 65 65 20 74 |le..Plea|se see t|
|000031e0| 68 65 20 66 69 6c 65 20 | 73 79 73 74 65 6d 2d 73 |he file |system-s|
|000031f0| 70 65 63 69 66 69 63 20 | 62 75 69 6c 64 65 72 20 |pecific |builder |
|00003200| 6d 61 6e 75 61 6c 20 70 | 61 67 65 73 20 66 6f 72 |manual p|ages for|
|00003210| 0a 66 75 72 74 68 65 72 | 20 64 65 74 61 69 6c 73 |.further| details|
|00003220| 2e 0a 2e 53 48 20 4f 50 | 54 49 4f 4e 53 0a 2e 54 |...SH OP|TIONS..T|
|00003230| 50 0a 2e 42 20 2d 56 0a | 50 72 6f 64 75 63 65 20 |P..B -V.|Produce |
|00003240| 76 65 72 62 6f 73 65 20 | 6f 75 74 70 75 74 2c 20 |verbose |output, |
|00003250| 69 6e 63 6c 75 64 69 6e | 67 20 61 6c 6c 20 66 69 |includin|g all fi|
|00003260| 6c 65 20 73 79 73 74 65 | 6d 2d 73 70 65 63 69 66 |le syste|m-specif|
|00003270| 69 63 20 63 6f 6d 6d 61 | 6e 64 73 0a 74 68 61 74 |ic comma|nds.that|
|00003280| 20 61 72 65 20 65 78 65 | 63 75 74 65 64 2e 0a 53 | are exe|cuted..S|
|00003290| 70 65 63 69 66 79 69 6e | 67 20 74 68 69 73 20 6f |pecifyin|g this o|
|000032a0| 70 74 69 6f 6e 20 6d 6f | 72 65 20 74 68 61 6e 20 |ption mo|re than |
|000032b0| 6f 6e 63 65 20 69 6e 68 | 69 62 69 74 73 20 65 78 |once inh|ibits ex|
|000032c0| 65 63 75 74 69 6f 6e 20 | 6f 66 20 61 6e 79 0a 66 |ecution |of any.f|
|000032d0| 69 6c 65 20 73 79 73 74 | 65 6d 2d 73 70 65 63 69 |ile syst|em-speci|
|000032e0| 66 69 63 20 63 6f 6d 6d | 61 6e 64 73 2e 0a 54 68 |fic comm|ands..Th|
|000032f0| 69 73 20 69 73 20 72 65 | 61 6c 6c 79 20 6f 6e 6c |is is re|ally onl|
|00003300| 79 20 75 73 65 66 75 6c | 20 66 6f 72 20 74 65 73 |y useful| for tes|
|00003310| 74 69 6e 67 2e 0a 2e 54 | 50 0a 2e 42 49 20 2d 74 |ting...T|P..BI -t|
|00003320| 20 5c 20 66 73 74 79 70 | 65 0a 53 70 65 63 69 66 | \ fstyp|e.Specif|
|00003330| 69 65 73 20 74 68 65 20 | 74 79 70 65 20 6f 66 20 |ies the |type of |
|00003340| 66 69 6c 65 20 73 79 73 | 74 65 6d 20 74 6f 20 62 |file sys|tem to b|
|00003350| 65 20 62 75 69 6c 74 2e | 0a 49 66 20 6e 6f 74 20 |e built.|.If not |
|00003360| 73 70 65 63 69 66 69 65 | 64 2c 20 74 68 65 20 74 |specifie|d, the t|
|00003370| 79 70 65 20 69 73 20 64 | 65 64 75 63 65 64 20 62 |ype is d|educed b|
|00003380| 79 20 73 65 61 72 63 68 | 69 6e 67 20 66 6f 72 0a |y search|ing for.|
|00003390| 2e 49 20 66 69 6c 65 73 | 79 73 0a 69 6e 0a 2e 49 |.I files|ys.in..I|
|000033a0| 20 2f 65 74 63 2f 66 73 | 74 61 62 0a 61 6e 64 20 | /etc/fs|tab.and |
|000033b0| 75 73 69 6e 67 20 74 68 | 65 20 63 6f 72 72 65 73 |using th|e corres|
|000033c0| 70 6f 6e 64 69 6e 67 20 | 65 6e 74 72 79 2e 0a 49 |ponding |entry..I|
|000033d0| 66 20 74 68 65 20 74 79 | 70 65 20 63 61 6e 20 6e |f the ty|pe can n|
|000033e0| 6f 74 20 62 65 20 64 65 | 64 75 63 65 64 2c 20 74 |ot be de|duced, t|
|000033f0| 68 65 20 64 65 66 61 75 | 6c 74 20 66 69 6c 65 20 |he defau|lt file |
|00003400| 73 79 73 74 65 6d 20 74 | 79 70 65 0a 28 63 75 72 |system t|ype.(cur|
|00003410| 72 65 6e 74 6c 79 20 6d | 69 6e 69 78 29 20 69 73 |rently m|inix) is|
|00003420| 20 75 73 65 64 2e 0a 2e | 54 50 0a 2e 42 20 66 73 | used...|TP..B fs|
|00003430| 2d 6f 70 74 69 6f 6e 73 | 0a 46 69 6c 65 20 73 79 |-options|.File sy|
|00003440| 73 74 65 6d 2d 73 70 65 | 63 69 66 69 63 20 6f 70 |stem-spe|cific op|
|00003450| 74 69 6f 6e 73 20 74 6f | 20 62 65 20 70 61 73 73 |tions to| be pass|
|00003460| 65 64 20 74 6f 20 74 68 | 65 20 72 65 61 6c 20 66 |ed to th|e real f|
|00003470| 69 6c 65 20 0a 73 79 73 | 74 65 6d 20 62 75 69 6c |ile .sys|tem buil|
|00003480| 64 65 72 2e 0a 41 6c 74 | 68 6f 75 67 68 20 6e 6f |der..Alt|hough no|
|00003490| 74 20 67 75 61 72 61 6e | 74 65 65 64 2c 20 74 68 |t guaran|teed, th|
|000034a0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 6f 70 74 69 |e follow|ing opti|
|000034b0| 6f 6e 73 20 61 72 65 20 | 73 75 70 70 6f 72 74 65 |ons are |supporte|
|000034c0| 64 0a 62 79 20 6d 6f 73 | 74 20 66 69 6c 65 20 73 |d.by mos|t file s|
|000034d0| 79 73 74 65 6d 20 62 75 | 69 6c 64 65 72 73 2e 0a |ystem bu|ilders..|
|000034e0| 2e 54 50 0a 2e 42 20 2d | 63 0a 43 68 65 63 6b 20 |.TP..B -|c.Check |
|000034f0| 74 68 65 20 64 65 76 69 | 63 65 20 66 6f 72 20 62 |the devi|ce for b|
|00003500| 61 64 20 62 6c 6f 63 6b | 73 20 62 65 66 6f 72 65 |ad block|s before|
|00003510| 20 62 75 69 6c 64 69 6e | 67 20 74 68 65 20 66 69 | buildin|g the fi|
|00003520| 6c 65 20 73 79 73 74 65 | 6d 2e 0a 2e 54 50 0a 2e |le syste|m...TP..|
|00003530| 42 49 20 2d 6c 20 5c 20 | 66 69 6c 65 6e 61 6d 65 |BI -l \ |filename|
|00003540| 0a 52 65 61 64 20 74 68 | 65 20 62 61 64 20 62 6c |.Read th|e bad bl|
|00003550| 6f 63 6b 73 20 6c 69 73 | 74 20 66 72 6f 6d 0a 2e |ocks lis|t from..|
|00003560| 49 20 66 69 6c 65 6e 61 | 6d 65 0a 2e 54 50 0a 2e |I filena|me..TP..|
|00003570| 42 20 2d 76 0a 50 72 6f | 64 75 63 65 20 76 65 72 |B -v.Pro|duce ver|
|00003580| 62 6f 73 65 20 6f 75 74 | 70 75 74 2e 0a 2e 53 48 |bose out|put...SH|
|00003590| 20 42 55 47 53 0a 41 6c | 6c 20 67 65 6e 65 72 69 | BUGS.Al|l generi|
|000035a0| 63 20 6f 70 74 69 6f 6e | 73 20 6d 75 73 74 20 70 |c option|s must p|
|000035b0| 72 65 63 65 64 65 20 61 | 6e 64 20 6e 6f 74 20 62 |recede a|nd not b|
|000035c0| 65 20 63 6f 6d 62 69 6e | 65 64 20 77 69 74 68 0a |e combin|ed with.|
|000035d0| 66 69 6c 65 20 73 79 73 | 74 65 6d 2d 73 70 65 63 |file sys|tem-spec|
|000035e0| 69 66 69 63 20 6f 70 74 | 69 6f 6e 73 2e 0a 53 6f |ific opt|ions..So|
|000035f0| 6d 65 20 66 69 6c 65 20 | 73 79 73 74 65 6d 2d 73 |me file |system-s|
|00003600| 70 65 63 69 66 69 63 20 | 70 72 6f 67 72 61 6d 73 |pecific |programs|
|00003610| 20 64 6f 20 6e 6f 74 20 | 73 75 70 70 6f 72 74 20 | do not |support |
|00003620| 74 68 65 0a 2e 49 20 2d | 76 0a 28 76 65 72 62 6f |the..I -|v.(verbo|
|00003630| 73 65 29 20 6f 70 74 69 | 6f 6e 2c 20 6e 6f 72 20 |se) opti|on, nor |
|00003640| 72 65 74 75 72 6e 20 6d | 65 61 6e 69 6e 67 66 75 |return m|eaningfu|
|00003650| 6c 20 65 78 69 74 20 63 | 6f 64 65 73 2e 0a 41 6c |l exit c|odes..Al|
|00003660| 73 6f 2c 20 73 6f 6d 65 | 20 66 69 6c 65 20 73 79 |so, some| file sy|
|00003670| 73 74 65 6d 2d 73 70 65 | 63 69 66 69 63 20 70 72 |stem-spe|cific pr|
|00003680| 6f 67 72 61 6d 73 20 64 | 6f 20 6e 6f 74 20 61 75 |ograms d|o not au|
|00003690| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 0a 64 65 74 65 |tomatica|lly.dete|
|000036a0| 63 74 20 74 68 65 20 64 | 65 76 69 63 65 20 73 69 |ct the d|evice si|
|000036b0| 7a 65 20 61 6e 64 20 72 | 65 71 75 69 72 65 20 74 |ze and r|equire t|
|000036c0| 68 65 0a 2e 49 20 62 6c | 6f 63 6b 73 0a 70 61 72 |he..I bl|ocks.par|
|000036d0| 61 6d 65 74 65 72 20 74 | 6f 20 62 65 20 73 70 65 |ameter t|o be spe|
|000036e0| 63 69 66 69 65 64 2e 0a | 2e 53 48 20 41 55 54 48 |cified..|.SH AUTH|
|000036f0| 4f 52 53 0a 44 61 76 69 | 64 20 45 6e 67 65 6c 20 |ORS.Davi|d Engel |
|00003700| 28 64 61 76 69 64 40 6f | 64 73 2e 63 6f 6d 29 0a |(david@o|ds.com).|
|00003710| 2e 62 72 0a 46 72 65 64 | 20 4e 2e 20 76 61 6e 20 |.br.Fred| N. van |
|00003720| 4b 65 6d 70 65 6e 20 28 | 77 61 6c 74 6a 65 40 75 |Kempen (|waltje@u|
|00003730| 77 61 6c 74 2e 6e 6c 2e | 6d 75 67 6e 65 74 2e 6f |walt.nl.|mugnet.o|
|00003740| 72 67 29 0a 2e 62 72 0a | 54 68 65 20 6d 61 6e 75 |rg)..br.|The manu|
|00003750| 61 6c 20 70 61 67 65 20 | 77 61 73 20 73 68 61 6d |al page |was sham|
|00003760| 65 6c 65 73 73 6c 79 20 | 61 64 61 70 74 65 64 20 |elessly |adapted |
|00003770| 66 72 6f 6d 20 52 65 6d | 79 20 43 61 72 64 27 73 |from Rem|y Card's|
|00003780| 20 76 65 72 73 69 6f 6e | 0a 66 6f 72 20 74 68 65 | version|.for the|
|00003790| 20 65 78 74 32 20 66 69 | 6c 65 20 73 79 73 74 65 | ext2 fi|le syste|
|000037a0| 6d 2e 0a 2e 53 48 20 53 | 45 45 20 41 4c 53 4f 0a |m...SH S|EE ALSO.|
|000037b0| 2e 42 52 20 66 73 63 6b | 20 28 38 29 2c 0a 2e 42 |.BR fsck| (8),..B|
|000037c0| 52 20 6d 6b 66 73 2e 6d | 69 6e 69 78 20 28 38 29 |R mkfs.m|inix (8)|
|000037d0| 2c 0a 2e 42 52 20 6d 6b | 66 73 2e 65 78 74 20 28 |,..BR mk|fs.ext (|
|000037e0| 38 29 2c 0a 2e 42 52 20 | 6d 6b 66 73 2e 65 78 74 |8),..BR |mkfs.ext|
|000037f0| 32 20 28 38 29 2c 0a 2e | 42 52 20 6d 6b 66 73 2e |2 (8),..|BR mkfs.|
|00003800| 78 69 61 66 73 20 28 38 | 29 2e 0a 00 00 00 00 00 |xiafs (8|).......|
|00003810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003880| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003890| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a00| 62 6f 6f 74 75 74 69 6c | 73 2f 66 73 75 74 69 6c |bootutil|s/fsutil|
|00003a10| 2f 75 74 69 6c 2e 63 00 | 00 00 00 00 00 00 00 00 |/util.c.|........|
|00003a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a60| 00 00 00 00 20 20 20 34 | 34 34 20 00 20 20 20 33 |.... 4|44 . 3|
|00003a70| 31 30 20 00 20 20 20 20 | 31 35 20 00 20 20 20 20 |10 . |15 . |
|00003a80| 20 20 31 34 31 32 31 20 | 20 35 34 31 34 34 35 35 | 14121 | 5414455|
|00003a90| 36 30 30 20 20 31 34 31 | 37 31 00 20 30 00 00 00 |600 141|71. 0...|
|00003aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b00| 00 75 73 74 61 72 20 20 | 00 6c 69 6e 75 78 00 00 |.ustar |.linux..|
|00003b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b20| 00 00 00 00 00 00 00 00 | 00 6c 69 6e 75 78 00 00 |........|.linux..|
|00003b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c00| 2f 2a 0a 20 2a 20 66 73 | 2d 75 74 69 6c 09 41 20 |/*. * fs|-util.A |
|00003c10| 73 69 6d 70 6c 65 20 67 | 65 6e 65 72 69 63 20 66 |simple g|eneric f|
|00003c20| 72 6f 6e 74 65 6e 64 20 | 66 6f 72 20 74 68 65 20 |rontend |for the |
|00003c30| 66 6f 72 20 74 68 65 20 | 66 73 63 6b 20 61 6e 64 |for the |fsck and|
|00003c40| 20 6d 6b 66 73 0a 20 2a | 09 09 70 72 6f 67 72 61 | mkfs. *|..progra|
|00003c50| 6d 73 20 75 6e 64 65 72 | 20 4c 69 6e 75 78 2e 20 |ms under| Linux. |
|00003c60| 20 53 65 65 20 74 68 65 | 20 6d 61 6e 75 61 6c 20 | See the| manual |
|00003c70| 70 61 67 65 73 20 66 6f | 72 20 64 65 74 61 69 6c |pages fo|r detail|
|00003c80| 73 2e 0a 20 2a 0a 20 2a | 20 55 73 61 67 65 3a 09 |s.. *. *| Usage:.|
|00003c90| 66 73 63 6b 20 5b 2d 41 | 56 5d 20 5b 2d 74 20 66 |fsck [-A|V] [-t f|
|00003ca0| 73 74 79 70 65 5d 20 5b | 66 73 2d 6f 70 74 69 6f |stype] [|fs-optio|
|00003cb0| 6e 73 5d 20 64 65 76 69 | 63 65 0a 20 2a 09 09 6d |ns] devi|ce. *..m|
|00003cc0| 6b 66 73 20 5b 2d 56 5d | 20 5b 2d 74 20 66 73 74 |kfs [-V]| [-t fst|
|00003cd0| 79 70 65 5d 20 5b 66 73 | 2d 6f 70 74 69 6f 6e 73 |ype] [fs|-options|
|00003ce0| 5d 20 64 65 76 69 63 65 | 3c 20 5b 73 69 7a 65 5d |] device|< [size]|
|00003cf0| 0a 20 2a 0a 20 2a 20 56 | 65 72 73 69 6f 6e 3a 09 |. *. * V|ersion:.|
|00003d00| 40 28 23 29 66 73 2d 75 | 74 69 6c 2e 63 09 31 2e |@(#)fs-u|til.c.1.|
|00003d10| 35 09 30 33 2f 30 38 2f | 39 33 0a 20 2a 0a 20 2a |5.03/08/|93. *. *|
|00003d20| 20 41 75 74 68 6f 72 73 | 3a 09 44 61 76 69 64 20 | Authors|:.David |
|00003d30| 45 6e 67 65 6c 2c 20 3c | 64 61 76 69 64 40 6f 64 |Engel, <|david@od|
|00003d40| 73 2e 63 6f 6d 3e 0a 20 | 2a 09 09 46 72 65 64 20 |s.com>. |*..Fred |
|00003d50| 4e 2e 20 76 61 6e 20 4b | 65 6d 70 65 6e 2c 20 3c |N. van K|empen, <|
|00003d60| 77 61 6c 74 6a 65 40 75 | 57 61 6c 74 2e 4e 4c 2e |waltje@u|Walt.NL.|
|00003d70| 4d 75 67 6e 65 74 2e 4f | 52 47 3e 0a 20 2a 2f 0a |Mugnet.O|RG>. */.|
|00003d80| 0a 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 79 73 2f |..#inclu|de <sys/|
|00003d90| 74 79 70 65 73 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |types.h>|.#includ|
|00003da0| 65 20 3c 73 79 73 2f 77 | 61 69 74 2e 68 3e 0a 23 |e <sys/w|ait.h>.#|
|00003db0| 69 6e 63 6c 75 64 65 20 | 3c 65 72 72 6e 6f 2e 68 |include |<errno.h|
|00003dc0| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 6c 69 6d 69 |>.#inclu|de <limi|
|00003dd0| 74 73 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 3c |ts.h>.#i|nclude <|
|00003de0| 73 74 64 69 6f 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |stdio.h>|.#includ|
|00003df0| 65 20 3c 73 74 64 6c 69 | 62 2e 68 3e 0a 23 69 6e |e <stdli|b.h>.#in|
|00003e00| 63 6c 75 64 65 20 3c 73 | 74 72 69 6e 67 2e 68 3e |clude <s|tring.h>|
|00003e10| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 65 72 72 6e 6f |.#includ|e <errno|
|00003e20| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 3c 6d 6e |.h>.#inc|lude <mn|
|00003e30| 74 65 6e 74 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |tent.h>.|#include|
|00003e40| 20 3c 75 6e 69 73 74 64 | 2e 68 3e 0a 23 69 6e 63 | <unistd|.h>.#inc|
|00003e50| 6c 75 64 65 20 3c 67 65 | 74 6f 70 74 2e 68 3e 0a |lude <ge|topt.h>.|
|00003e60| 0a 0a 23 69 66 6e 64 65 | 66 20 44 45 46 41 55 4c |..#ifnde|f DEFAUL|
|00003e70| 54 5f 46 53 54 59 50 45 | 0a 23 20 20 20 64 65 66 |T_FSTYPE|.# def|
|00003e80| 69 6e 65 20 44 45 46 41 | 55 4c 54 5f 46 53 54 59 |ine DEFA|ULT_FSTY|
|00003e90| 50 45 09 22 6d 69 6e 69 | 78 22 0a 23 65 6e 64 69 |PE."mini|x".#endi|
|00003ea0| 66 0a 0a 23 64 65 66 69 | 6e 65 20 5f 50 41 54 48 |f..#defi|ne _PATH|
|00003eb0| 5f 50 52 4f 47 09 22 25 | 73 2e 25 73 22 0a 23 64 |_PROG."%|s.%s".#d|
|00003ec0| 65 66 69 6e 65 20 5f 50 | 52 4f 47 5f 46 53 43 4b |efine _P|ROG_FSCK|
|00003ed0| 09 22 66 73 63 6b 22 0a | 0a 23 64 65 66 69 6e 65 |."fsck".|.#define|
|00003ee0| 20 45 58 49 54 5f 4f 4b | 20 20 20 20 20 20 20 20 | EXIT_OK| |
|00003ef0| 20 20 30 0a 23 64 65 66 | 69 6e 65 20 45 58 49 54 | 0.#def|ine EXIT|
|00003f00| 5f 4e 4f 4e 44 45 53 54 | 52 55 43 54 20 31 0a 23 |_NONDEST|RUCT 1.#|
|00003f10| 64 65 66 69 6e 65 20 45 | 58 49 54 5f 44 45 53 54 |define E|XIT_DEST|
|00003f20| 52 55 43 54 20 20 20 20 | 32 0a 23 64 65 66 69 6e |RUCT |2.#defin|
|00003f30| 65 20 45 58 49 54 5f 55 | 4e 43 4f 52 52 45 43 54 |e EXIT_U|NCORRECT|
|00003f40| 45 44 20 34 0a 23 64 65 | 66 69 6e 65 20 45 58 49 |ED 4.#de|fine EXI|
|00003f50| 54 5f 45 52 52 4f 52 20 | 20 20 20 20 20 20 38 0a |T_ERROR | 8.|
|00003f60| 23 64 65 66 69 6e 65 20 | 45 58 49 54 5f 55 53 41 |#define |EXIT_USA|
|00003f70| 47 45 20 20 20 20 20 20 | 20 31 36 0a 23 64 65 66 |GE | 16.#def|
|00003f80| 69 6e 65 20 45 58 49 54 | 5f 4c 49 42 52 41 52 59 |ine EXIT|_LIBRARY|
|00003f90| 20 20 20 20 20 31 32 38 | 0a 0a 73 74 61 74 69 63 | 128|..static|
|00003fa0| 20 63 68 61 72 20 2a 56 | 65 72 73 69 6f 6e 20 3d | char *V|ersion =|
|00003fb0| 20 22 31 2e 37 22 3b 0a | 73 74 61 74 69 63 20 63 | "1.7";.|static c|
|00003fc0| 68 61 72 20 2a 69 67 6e | 6f 72 65 64 5f 74 79 70 |har *ign|ored_typ|
|00003fd0| 65 73 5b 5d 20 3d 20 7b | 0a 20 20 22 69 67 6e 6f |es[] = {|. "igno|
|00003fe0| 72 65 22 2c 0a 20 20 22 | 69 73 6f 39 36 36 30 22 |re",. "|iso9660"|
|00003ff0| 2c 0a 20 20 22 6d 73 64 | 6f 73 22 2c 0a 20 20 22 |,. "msd|os",. "|
|00004000| 6e 66 73 22 2c 0a 20 20 | 22 70 72 6f 63 22 2c 0a |nfs",. |"proc",.|
|00004010| 20 20 22 73 77 22 2c 0a | 20 20 22 73 77 61 70 22 | "sw",.| "swap"|
|00004020| 2c 0a 20 20 4e 55 4c 4c | 0a 7d 3b 0a 0a 0a 2f 2a |,. NULL|.};.../*|
|00004030| 20 45 78 65 63 75 74 65 | 20 61 20 70 72 6f 67 72 | Execute| a progr|
|00004040| 61 6d 2e 20 2a 2f 0a 69 | 6e 74 20 64 6f 5f 65 78 |am. */.i|nt do_ex|
|00004050| 65 63 28 63 68 61 72 20 | 2a 70 72 6f 67 2c 20 63 |ec(char |*prog, c|
|00004060| 68 61 72 20 2a 2a 61 72 | 67 76 2c 20 69 6e 74 20 |har **ar|gv, int |
|00004070| 76 65 72 62 6f 73 65 29 | 0a 7b 0a 20 20 20 20 63 |verbose)|.{. c|
|00004080| 68 61 72 20 2a 61 72 67 | 73 5b 33 33 5d 3b 0a 20 |har *arg|s[33];. |
|00004090| 20 20 20 72 65 67 69 73 | 74 65 72 20 69 6e 74 20 | regis|ter int |
|000040a0| 69 3b 0a 20 20 20 20 69 | 6e 74 20 70 69 64 2c 20 |i;. i|nt pid, |
|000040b0| 73 74 61 74 75 73 3b 0a | 0a 20 20 20 20 2f 2a 20 |status;.|. /* |
|000040c0| 42 75 69 6c 64 20 74 68 | 65 20 76 65 63 74 6f 72 |Build th|e vector|
|000040d0| 2e 20 2a 2f 0a 20 20 20 | 20 69 20 3d 20 30 3b 0a |. */. | i = 0;.|
|000040e0| 20 20 20 20 61 72 67 73 | 5b 69 2b 2b 5d 20 3d 20 | args|[i++] = |
|000040f0| 70 72 6f 67 3b 0a 20 20 | 20 20 77 68 69 6c 65 28 |prog;. | while(|
|00004100| 2a 61 72 67 76 20 21 3d | 20 4e 55 4c 4c 20 26 26 |*argv !=| NULL &&|
|00004110| 20 69 20 3c 20 33 32 29 | 0a 20 20 20 20 20 20 20 | i < 32)|. |
|00004120| 20 61 72 67 73 5b 69 2b | 2b 5d 20 3d 20 2a 61 72 | args[i+|+] = *ar|
|00004130| 67 76 2b 2b 3b 0a 20 20 | 20 20 61 72 67 73 5b 69 |gv++;. | args[i|
|00004140| 5d 20 3d 20 4e 55 4c 4c | 3b 0a 0a 20 20 20 20 69 |] = NULL|;.. i|
|00004150| 66 20 28 76 65 72 62 6f | 73 65 29 20 7b 0a 09 69 |f (verbo|se) {..i|
|00004160| 20 3d 20 30 3b 0a 09 77 | 68 69 6c 65 28 61 72 67 | = 0;..w|hile(arg|
|00004170| 73 5b 69 5d 20 21 3d 20 | 4e 55 4c 4c 29 20 7b 0a |s[i] != |NULL) {.|
|00004180| 09 20 20 20 20 70 72 69 | 6e 74 66 28 22 25 73 20 |. pri|ntf("%s |
|00004190| 22 2c 20 61 72 67 73 5b | 69 5d 29 3b 0a 09 20 20 |", args[|i]);.. |
|000041a0| 20 20 69 2b 2b 3b 0a 09 | 7d 0a 09 70 72 69 6e 74 | i++;..|}..print|
|000041b0| 66 28 22 5c 6e 22 29 3b | 0a 09 69 66 20 28 76 65 |f("\n");|..if (ve|
|000041c0| 72 62 6f 73 65 20 3e 20 | 31 29 0a 09 20 20 20 20 |rbose > |1).. |
|000041d0| 72 65 74 75 72 6e 20 45 | 58 49 54 5f 4f 4b 3b 0a |return E|XIT_OK;.|
|000041e0| 20 20 20 20 7d 0a 0a 20 | 20 20 20 2f 2a 20 46 6f | }.. | /* Fo|
|000041f0| 72 6b 20 61 6e 64 20 65 | 78 65 63 75 74 65 20 74 |rk and e|xecute t|
|00004200| 68 65 20 63 6f 72 72 65 | 63 74 20 70 72 6f 67 72 |he corre|ct progr|
|00004210| 61 6d 2e 20 2a 2f 0a 20 | 20 20 20 69 66 20 28 28 |am. */. | if ((|
|00004220| 70 69 64 20 3d 20 66 6f | 72 6b 28 29 29 20 3c 20 |pid = fo|rk()) < |
|00004230| 30 29 20 7b 0a 20 20 20 | 20 20 20 20 20 70 65 72 |0) {. | per|
|00004240| 72 6f 72 28 22 66 6f 72 | 6b 22 29 3b 0a 09 73 74 |ror("for|k");..st|
|00004250| 61 74 75 73 20 3d 20 45 | 58 49 54 5f 45 52 52 4f |atus = E|XIT_ERRO|
|00004260| 52 3b 0a 20 20 20 20 7d | 20 65 6c 73 65 20 69 66 |R;. }| else if|
|00004270| 20 28 70 69 64 20 3d 3d | 20 30 29 20 7b 0a 09 28 | (pid ==| 0) {..(|
|00004280| 76 6f 69 64 29 20 65 78 | 65 63 76 70 28 61 72 67 |void) ex|ecvp(arg|
|00004290| 73 5b 30 5d 2c 20 61 72 | 67 73 29 3b 0a 20 20 09 |s[0], ar|gs);. .|
|000042a0| 70 65 72 72 6f 72 28 61 | 72 67 73 5b 30 5d 29 3b |perror(a|rgs[0]);|
|000042b0| 0a 09 65 78 69 74 28 45 | 58 49 54 5f 45 52 52 4f |..exit(E|XIT_ERRO|
|000042c0| 52 29 3b 0a 20 20 20 20 | 7d 20 65 6c 73 65 20 7b |R);. |} else {|
|000042d0| 0a 20 20 20 20 20 20 20 | 20 77 68 69 6c 65 28 77 |. | while(w|
|000042e0| 61 69 74 28 26 73 74 61 | 74 75 73 29 20 21 3d 20 |ait(&sta|tus) != |
|000042f0| 70 69 64 29 0a 09 20 20 | 20 20 3b 0a 09 73 74 61 |pid).. | ;..sta|
|00004300| 74 75 73 20 3d 20 57 45 | 58 49 54 53 54 41 54 55 |tus = WE|XITSTATU|
|00004310| 53 28 73 74 61 74 75 73 | 29 3b 0a 20 20 20 20 7d |S(status|);. }|
|00004320| 0a 0a 20 20 20 20 72 65 | 74 75 72 6e 20 73 74 61 |.. re|turn sta|
|00004330| 74 75 73 3b 0a 7d 0a 0a | 0a 2f 2a 20 43 68 65 63 |tus;.}..|./* Chec|
|00004340| 6b 20 69 66 20 77 65 20 | 68 61 76 65 20 74 6f 20 |k if we |have to |
|00004350| 69 67 6e 6f 72 65 20 61 | 20 66 69 6c 65 20 73 79 |ignore a| file sy|
|00004360| 73 74 65 6d 20 74 79 70 | 65 2e 20 2a 2f 0a 69 6e |stem typ|e. */.in|
|00004370| 74 20 69 67 6e 6f 72 65 | 28 63 68 61 72 20 2a 74 |t ignore|(char *t|
|00004380| 79 70 65 29 0a 7b 0a 20 | 20 20 20 63 68 61 72 20 |ype).{. | char |
|00004390| 2a 2a 69 70 3b 0a 0a 20 | 20 20 20 69 70 20 3d 20 |**ip;.. | ip = |
|000043a0| 69 67 6e 6f 72 65 64 5f | 74 79 70 65 73 3b 0a 20 |ignored_|types;. |
|000043b0| 20 20 20 77 68 69 6c 65 | 20 28 2a 69 70 20 21 3d | while| (*ip !=|
|000043c0| 20 4e 55 4c 4c 29 20 7b | 0a 09 69 66 20 28 21 73 | NULL) {|..if (!s|
|000043d0| 74 72 63 6d 70 28 74 79 | 70 65 2c 20 2a 69 70 29 |trcmp(ty|pe, *ip)|
|000043e0| 29 0a 09 20 20 20 20 72 | 65 74 75 72 6e 20 31 3b |).. r|eturn 1;|
|000043f0| 0a 09 69 70 2b 2b 3b 0a | 20 20 20 20 7d 0a 0a 20 |..ip++;.| }.. |
|00004400| 20 20 20 72 65 74 75 72 | 6e 20 30 3b 0a 7d 0a 0a | retur|n 0;.}..|
|00004410| 0a 2f 2a 20 43 68 65 63 | 6b 20 61 6c 6c 20 66 69 |./* Chec|k all fi|
|00004420| 6c 65 20 73 79 73 74 65 | 6d 73 2c 20 75 73 69 6e |le syste|ms, usin|
|00004430| 67 20 74 68 65 20 2f 65 | 74 63 2f 66 73 74 61 62 |g the /e|tc/fstab|
|00004440| 20 74 61 62 6c 65 2e 20 | 2a 2f 0a 69 6e 74 20 63 | table. |*/.int c|
|00004450| 68 65 63 6b 5f 61 6c 6c | 28 69 6e 74 20 76 65 72 |heck_all|(int ver|
|00004460| 62 6f 73 65 2c 20 63 68 | 61 72 20 2a 2a 61 72 67 |bose, ch|ar **arg|
|00004470| 76 29 0a 7b 0a 20 20 20 | 20 63 68 61 72 20 70 61 |v).{. | char pa|
|00004480| 74 68 5b 50 41 54 48 5f | 4d 41 58 5d 3b 0a 20 20 |th[PATH_|MAX];. |
|00004490| 20 20 63 68 61 72 20 2a | 61 72 67 73 5b 33 33 5d | char *|args[33]|
|000044a0| 3b 0a 20 20 20 20 46 49 | 4c 45 20 2a 6d 6e 74 66 |;. FI|LE *mntf|
|000044b0| 69 6c 65 3b 0a 20 20 20 | 20 73 74 72 75 63 74 20 |ile;. | struct |
|000044c0| 6d 6e 74 65 6e 74 20 2a | 6d 70 3b 0a 20 20 20 20 |mntent *|mp;. |
|000044d0| 72 65 67 69 73 74 65 72 | 20 69 6e 74 20 69 3b 0a |register| int i;.|
|000044e0| 20 20 20 20 69 6e 74 20 | 73 74 61 74 75 73 20 3d | int |status =|
|000044f0| 20 45 58 49 54 5f 4f 4b | 3b 0a 0a 20 20 20 20 69 | EXIT_OK|;.. i|
|00004500| 66 20 28 76 65 72 62 6f | 73 65 29 0a 20 20 20 20 |f (verbo|se). |
|00004510| 20 20 20 20 70 72 69 6e | 74 66 28 22 43 68 65 63 | prin|tf("Chec|
|00004520| 6b 69 6e 67 20 61 6c 6c | 20 66 69 6c 65 20 73 79 |king all| file sy|
|00004530| 73 74 65 6d 73 2e 5c 6e | 22 29 3b 0a 0a 20 20 20 |stems.\n|");.. |
|00004540| 20 2f 2a 20 43 72 65 61 | 74 65 20 61 6e 20 61 72 | /* Crea|te an ar|
|00004550| 72 61 79 20 6f 66 20 61 | 72 67 75 6d 65 6e 74 73 |ray of a|rguments|
|00004560| 2e 20 2a 2f 0a 20 20 20 | 20 69 20 3d 20 30 3b 0a |. */. | i = 0;.|
|00004570| 20 20 20 20 77 68 69 6c | 65 20 28 2a 61 72 67 76 | whil|e (*argv|
|00004580| 20 21 3d 20 4e 55 4c 4c | 20 26 26 20 69 20 3c 20 | != NULL| && i < |
|00004590| 33 32 29 0a 09 61 72 67 | 73 5b 69 2b 2b 5d 20 3d |32)..arg|s[i++] =|
|000045a0| 20 2a 61 72 67 76 2b 2b | 3b 0a 20 20 20 20 61 72 | *argv++|;. ar|
|000045b0| 67 73 5b 69 5d 20 3d 20 | 4e 55 4c 4c 3b 0a 20 20 |gs[i] = |NULL;. |
|000045c0| 20 20 61 72 67 73 5b 69 | 20 2b 20 31 5d 20 3d 20 | args[i| + 1] = |
|000045d0| 4e 55 4c 4c 3b 0a 0a 20 | 20 20 20 2f 2a 20 4f 70 |NULL;.. | /* Op|
|000045e0| 65 6e 20 74 68 65 20 6d | 6f 75 6e 74 20 74 61 62 |en the m|ount tab|
|000045f0| 6c 65 2e 20 2a 2f 0a 20 | 20 20 20 69 66 20 28 28 |le. */. | if ((|
|00004600| 6d 6e 74 66 69 6c 65 20 | 3d 20 73 65 74 6d 6e 74 |mntfile |= setmnt|
|00004610| 65 6e 74 28 4d 4e 54 54 | 41 42 2c 20 22 72 22 29 |ent(MNTT|AB, "r")|
|00004620| 29 20 3d 3d 20 4e 55 4c | 4c 29 20 7b 0a 09 70 65 |) == NUL|L) {..pe|
|00004630| 72 72 6f 72 28 4d 4e 54 | 54 41 42 29 3b 0a 09 65 |rror(MNT|TAB);..e|
|00004640| 78 69 74 28 45 58 49 54 | 5f 45 52 52 4f 52 29 3b |xit(EXIT|_ERROR);|
|00004650| 0a 20 20 20 20 7d 0a 0a | 20 20 20 20 2f 2a 20 57 |. }..| /* W|
|00004660| 61 6c 6b 20 74 68 72 6f | 75 67 68 20 74 68 65 20 |alk thro|ugh the |
|00004670| 2f 65 74 63 2f 66 73 74 | 61 62 20 66 69 6c 65 2e |/etc/fst|ab file.|
|00004680| 20 2a 2f 0a 20 20 20 20 | 77 68 69 6c 65 20 28 28 | */. |while ((|
|00004690| 6d 70 20 3d 20 67 65 74 | 6d 6e 74 65 6e 74 28 6d |mp = get|mntent(m|
|000046a0| 6e 74 66 69 6c 65 29 29 | 20 21 3d 20 4e 55 4c 4c |ntfile))| != NULL|
|000046b0| 29 20 7b 0a 09 69 66 20 | 28 76 65 72 62 6f 73 65 |) {..if |(verbose|
|000046c0| 29 0a 09 20 20 20 20 70 | 72 69 6e 74 66 28 22 25 |).. p|rintf("%|
|000046d0| 2d 37 73 20 25 2d 31 35 | 73 20 25 2d 31 35 73 20 |-7s %-15|s %-15s |
|000046e0| 22 2c 20 6d 70 2d 3e 6d | 6e 74 5f 74 79 70 65 2c |", mp->m|nt_type,|
|000046f0| 0a 09 09 20 20 20 6d 70 | 2d 3e 6d 6e 74 5f 66 73 |... mp|->mnt_fs|
|00004700| 6e 61 6d 65 2c 20 6d 70 | 2d 3e 6d 6e 74 5f 64 69 |name, mp|->mnt_di|
|00004710| 72 29 3b 0a 09 69 66 20 | 28 69 67 6e 6f 72 65 28 |r);..if |(ignore(|
|00004720| 6d 70 2d 3e 6d 6e 74 5f | 74 79 70 65 29 29 20 7b |mp->mnt_|type)) {|
|00004730| 0a 09 20 20 20 20 69 66 | 20 28 76 65 72 62 6f 73 |.. if| (verbos|
|00004740| 65 29 0a 09 20 20 20 20 | 20 20 20 20 70 72 69 6e |e).. | prin|
|00004750| 74 66 28 22 28 69 67 6e | 6f 72 65 64 29 5c 6e 22 |tf("(ign|ored)\n"|
|00004760| 29 3b 0a 09 20 20 20 20 | 63 6f 6e 74 69 6e 75 65 |);.. |continue|
|00004770| 3b 0a 09 7d 0a 0a 09 2f | 2a 20 42 75 69 6c 64 20 |;..}.../|* Build |
|00004780| 70 72 6f 67 72 61 6d 20 | 6e 61 6d 65 2e 20 2a 2f |program |name. */|
|00004790| 0a 09 73 70 72 69 6e 74 | 66 28 70 61 74 68 2c 20 |..sprint|f(path, |
|000047a0| 5f 50 41 54 48 5f 50 52 | 4f 47 2c 20 5f 50 52 4f |_PATH_PR|OG, _PRO|
|000047b0| 47 5f 46 53 43 4b 2c 20 | 6d 70 2d 3e 6d 6e 74 5f |G_FSCK, |mp->mnt_|
|000047c0| 74 79 70 65 29 3b 0a 09 | 61 72 67 73 5b 69 5d 20 |type);..|args[i] |
|000047d0| 3d 20 6d 70 2d 3e 6d 6e | 74 5f 66 73 6e 61 6d 65 |= mp->mn|t_fsname|
|000047e0| 3b 0a 09 73 74 61 74 75 | 73 20 7c 3d 20 64 6f 5f |;..statu|s |= do_|
|000047f0| 65 78 65 63 28 70 61 74 | 68 2c 20 61 72 67 73 2c |exec(pat|h, args,|
|00004800| 20 76 65 72 62 6f 73 65 | 29 3b 0a 20 20 20 20 7d | verbose|);. }|
|00004810| 0a 0a 20 20 20 20 28 76 | 6f 69 64 29 20 65 6e 64 |.. (v|oid) end|
|00004820| 6d 6e 74 65 6e 74 28 6d | 6e 74 66 69 6c 65 29 3b |mntent(m|ntfile);|
|00004830| 0a 0a 20 20 20 20 72 65 | 74 75 72 6e 20 73 74 61 |.. re|turn sta|
|00004840| 74 75 73 3b 0a 7d 0a 0a | 0a 2f 2a 20 4c 6f 6f 6b |tus;.}..|./* Look|
|00004850| 75 70 20 66 69 6c 65 73 | 79 73 20 69 6e 20 2f 65 |up files|ys in /e|
|00004860| 74 63 2f 66 73 74 61 62 | 20 61 6e 64 20 72 65 74 |tc/fstab| and ret|
|00004870| 75 72 6e 20 74 68 65 20 | 63 6f 72 72 65 73 70 6f |urn the |correspo|
|00004880| 6e 64 69 6e 67 20 65 6e | 74 72 79 2e 20 2a 2f 0a |nding en|try. */.|
|00004890| 73 74 72 75 63 74 20 6d | 6e 74 65 6e 74 20 2a 6c |struct m|ntent *l|
|000048a0| 6f 6f 6b 75 70 28 63 68 | 61 72 20 2a 66 69 6c 65 |ookup(ch|ar *file|
|000048b0| 73 79 73 29 0a 7b 0a 20 | 20 20 20 46 49 4c 45 20 |sys).{. | FILE |
|000048c0| 2a 6d 6e 74 66 69 6c 65 | 3b 0a 20 20 20 20 73 74 |*mntfile|;. st|
|000048d0| 72 75 63 74 20 6d 6e 74 | 65 6e 74 20 2a 6d 70 3b |ruct mnt|ent *mp;|
|000048e0| 0a 0a 20 20 20 20 2f 2a | 20 4e 6f 20 66 69 6c 65 |.. /*| No file|
|000048f0| 73 79 73 20 6e 61 6d 65 | 20 67 69 76 65 6e 2e 20 |sys name| given. |
|00004900| 2a 2f 0a 20 20 20 20 69 | 66 20 28 66 69 6c 65 73 |*/. i|f (files|
|00004910| 79 73 20 3d 3d 20 4e 55 | 4c 4c 29 0a 20 20 20 20 |ys == NU|LL). |
|00004920| 20 20 20 20 72 65 74 75 | 72 6e 20 4e 55 4c 4c 3b | retu|rn NULL;|
|00004930| 0a 0a 20 20 20 20 2f 2a | 20 4f 70 65 6e 20 74 68 |.. /*| Open th|
|00004940| 65 20 6d 6f 75 6e 74 20 | 74 61 62 6c 65 2e 20 2a |e mount |table. *|
|00004950| 2f 0a 20 20 20 20 69 66 | 20 28 28 6d 6e 74 66 69 |/. if| ((mntfi|
|00004960| 6c 65 20 3d 20 73 65 74 | 6d 6e 74 65 6e 74 28 4d |le = set|mntent(M|
|00004970| 4e 54 54 41 42 2c 20 22 | 72 22 29 29 20 3d 3d 20 |NTTAB, "|r")) == |
|00004980| 4e 55 4c 4c 29 20 7b 0a | 09 70 65 72 72 6f 72 28 |NULL) {.|.perror(|
|00004990| 4d 4e 54 54 41 42 29 3b | 0a 09 65 78 69 74 28 45 |MNTTAB);|..exit(E|
|000049a0| 58 49 54 5f 45 52 52 4f | 52 29 3b 0a 20 20 20 20 |XIT_ERRO|R);. |
|000049b0| 7d 0a 0a 20 20 20 20 77 | 68 69 6c 65 20 28 28 6d |}.. w|hile ((m|
|000049c0| 70 20 3d 20 67 65 74 6d | 6e 74 65 6e 74 28 6d 6e |p = getm|ntent(mn|
|000049d0| 74 66 69 6c 65 29 29 20 | 21 3d 20 4e 55 4c 4c 29 |tfile)) |!= NULL)|
|000049e0| 20 7b 0a 09 69 66 20 28 | 21 73 74 72 63 6d 70 28 | {..if (|!strcmp(|
|000049f0| 66 69 6c 65 73 79 73 2c | 20 6d 70 2d 3e 6d 6e 74 |filesys,| mp->mnt|
|00004a00| 5f 66 73 6e 61 6d 65 29 | 20 7c 7c 0a 09 20 20 20 |_fsname)| ||.. |
|00004a10| 20 21 73 74 72 63 6d 70 | 28 66 69 6c 65 73 79 73 | !strcmp|(filesys|
|00004a20| 2c 20 6d 70 2d 3e 6d 6e | 74 5f 64 69 72 29 29 0a |, mp->mn|t_dir)).|
|00004a30| 09 20 20 20 20 62 72 65 | 61 6b 3b 0a 20 20 20 20 |. bre|ak;. |
|00004a40| 7d 0a 0a 20 20 20 20 28 | 76 6f 69 64 29 20 65 6e |}.. (|void) en|
|00004a50| 64 6d 6e 74 65 6e 74 28 | 6d 6e 74 66 69 6c 65 29 |dmntent(|mntfile)|
|00004a60| 3b 0a 0a 20 20 20 20 72 | 65 74 75 72 6e 20 6d 70 |;.. r|eturn mp|
|00004a70| 3b 0a 7d 0a 0a 0a 76 6f | 69 64 20 75 73 61 67 65 |;.}...vo|id usage|
|00004a80| 28 69 6e 74 20 66 73 63 | 6b 2c 20 63 68 61 72 20 |(int fsc|k, char |
|00004a90| 2a 70 72 6f 67 29 0a 7b | 0a 20 20 20 20 69 66 20 |*prog).{|. if |
|00004aa0| 28 66 73 63 6b 29 20 7b | 0a 09 66 70 72 69 6e 74 |(fsck) {|..fprint|
|00004ab0| 66 28 73 74 64 65 72 72 | 2c 20 22 55 73 61 67 65 |f(stderr|, "Usage|
|00004ac0| 3a 20 66 73 63 6b 20 5b | 2d 41 56 5d 20 5b 2d 74 |: fsck [|-AV] [-t|
|00004ad0| 20 66 73 74 79 70 65 5d | 20 5b 66 73 2d 6f 70 74 | fstype]| [fs-opt|
|00004ae0| 69 6f 6e 73 5d 20 66 69 | 6c 65 73 79 73 5c 6e 22 |ions] fi|lesys\n"|
|00004af0| 29 3b 0a 20 20 20 20 7d | 20 65 6c 73 65 20 7b 0a |);. }| else {.|
|00004b00| 09 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c |.fprintf|(stderr,|
|00004b10| 20 22 55 73 61 67 65 3a | 20 6d 6b 66 73 20 5b 2d | "Usage:| mkfs [-|
|00004b20| 56 5d 20 5b 2d 74 20 66 | 73 74 79 70 65 5d 20 5b |V] [-t f|stype] [|
|00004b30| 66 73 2d 6f 70 74 69 6f | 6e 73 5d 20 66 69 6c 65 |fs-optio|ns] file|
|00004b40| 73 79 73 20 5b 73 69 7a | 65 5d 5c 6e 22 29 3b 0a |sys [siz|e]\n");.|
|00004b50| 20 20 20 20 7d 0a 0a 20 | 20 20 20 65 78 69 74 28 | }.. | exit(|
|00004b60| 45 58 49 54 5f 55 53 41 | 47 45 29 3b 0a 7d 0a 0a |EXIT_USA|GE);.}..|
|00004b70| 0a 76 6f 69 64 20 6d 61 | 69 6e 28 69 6e 74 20 61 |.void ma|in(int a|
|00004b80| 72 67 63 2c 20 63 68 61 | 72 20 2a 61 72 67 76 5b |rgc, cha|r *argv[|
|00004b90| 5d 29 0a 7b 0a 20 20 20 | 20 63 68 61 72 20 70 61 |]).{. | char pa|
|00004ba0| 74 68 5b 50 41 54 48 5f | 4d 41 58 5d 3b 0a 20 20 |th[PATH_|MAX];. |
|00004bb0| 20 20 63 68 61 72 20 2a | 6f 6c 64 70 61 74 68 2c | char *|oldpath,|
|00004bc0| 20 6e 65 77 70 61 74 68 | 5b 50 41 54 48 5f 4d 41 | newpath|[PATH_MA|
|00004bd0| 58 5d 3b 0a 20 20 20 20 | 72 65 67 69 73 74 65 72 |X];. |register|
|00004be0| 20 63 68 61 72 20 2a 73 | 70 3b 0a 20 20 20 20 73 | char *s|p;. s|
|00004bf0| 74 72 75 63 74 20 6d 6e | 74 65 6e 74 20 2a 66 73 |truct mn|tent *fs|
|00004c00| 65 6e 74 3b 0a 20 20 20 | 20 63 68 61 72 20 2a 66 |ent;. | char *f|
|00004c10| 73 74 79 70 65 20 3d 20 | 4e 55 4c 4c 3b 0a 20 20 |stype = |NULL;. |
|00004c20| 20 20 69 6e 74 20 76 65 | 72 62 6f 73 65 20 3d 20 | int ve|rbose = |
|00004c30| 30 3b 0a 20 20 20 20 69 | 6e 74 20 64 6f 61 6c 6c |0;. i|nt doall|
|00004c40| 20 3d 20 30 3b 0a 20 20 | 20 20 69 6e 74 20 69 2c | = 0;. | int i,|
|00004c50| 20 66 73 63 6b 2c 20 6d | 6f 72 65 3b 0a 0a 20 20 | fsck, m|ore;.. |
|00004c60| 20 20 2f 2a 20 4d 75 73 | 74 20 62 65 20 31 20 66 | /* Mus|t be 1 f|
|00004c70| 6f 72 20 22 66 73 63 6b | 22 20 61 6e 64 20 30 20 |or "fsck|" and 0 |
|00004c80| 66 6f 72 20 22 6d 6b 66 | 73 22 2e 20 2a 2f 0a 20 |for "mkf|s". */. |
|00004c90| 20 20 20 69 66 20 28 28 | 73 70 20 3d 20 73 74 72 | if ((|sp = str|
|00004ca0| 72 63 68 72 28 61 72 67 | 76 5b 30 5d 2c 20 27 2f |rchr(arg|v[0], '/|
|00004cb0| 27 29 29 20 21 3d 20 4e | 55 4c 4c 29 0a 20 20 20 |')) != N|ULL). |
|00004cc0| 20 20 20 20 20 73 70 2b | 2b 3b 0a 20 20 20 20 65 | sp+|+;. e|
|00004cd0| 6c 73 65 0a 20 20 20 20 | 20 20 20 20 73 70 20 3d |lse. | sp =|
|00004ce0| 20 61 72 67 76 5b 30 5d | 3b 0a 20 20 20 20 69 66 | argv[0]|;. if|
|00004cf0| 20 28 21 73 74 72 63 6d | 70 28 73 70 2c 20 5f 50 | (!strcm|p(sp, _P|
|00004d00| 52 4f 47 5f 46 53 43 4b | 29 29 0a 20 20 20 20 20 |ROG_FSCK|)). |
|00004d10| 20 20 20 66 73 63 6b 20 | 3d 20 31 3b 0a 20 20 20 | fsck |= 1;. |
|00004d20| 20 65 6c 73 65 0a 20 20 | 20 20 20 20 20 20 66 73 | else. | fs|
|00004d30| 63 6b 20 3d 20 30 3b 0a | 0a 20 20 20 20 2f 2a 20 |ck = 0;.|. /* |
|00004d40| 43 68 65 63 6b 20 63 6f | 6d 6d 61 6e 64 6c 69 6e |Check co|mmandlin|
|00004d50| 65 20 6f 70 74 69 6f 6e | 73 2e 20 2a 2f 0a 20 20 |e option|s. */. |
|00004d60| 20 20 6f 70 74 65 72 72 | 20 3d 20 30 3b 0a 20 20 | opterr| = 0;. |
|00004d70| 20 20 6d 6f 72 65 20 3d | 20 30 3b 0a 20 20 20 20 | more =| 0;. |
|00004d80| 77 68 69 6c 65 20 28 28 | 28 69 20 3d 20 67 65 74 |while ((|(i = get|
|00004d90| 6f 70 74 28 61 72 67 63 | 2c 20 61 72 67 76 2c 20 |opt(argc|, argv, |
|00004da0| 22 41 56 74 3a 22 29 29 | 20 21 3d 20 45 4f 46 29 |"AVt:"))| != EOF)|
|00004db0| 20 26 26 20 28 6d 6f 72 | 65 20 3d 3d 20 30 29 29 | && (mor|e == 0))|
|00004dc0| 0a 09 73 77 69 74 63 68 | 28 69 29 20 7b 0a 09 20 |..switch|(i) {.. |
|00004dd0| 20 63 61 73 65 20 27 41 | 27 3a 0a 09 20 20 20 20 | case 'A|':.. |
|00004de0| 64 6f 61 6c 6c 2b 2b 3b | 0a 09 20 20 20 20 62 72 |doall++;|.. br|
|00004df0| 65 61 6b 3b 0a 09 20 20 | 63 61 73 65 20 27 56 27 |eak;.. |case 'V'|
|00004e00| 3a 0a 09 20 20 20 20 76 | 65 72 62 6f 73 65 2b 2b |:.. v|erbose++|
|00004e10| 3b 0a 09 20 20 20 20 62 | 72 65 61 6b 3b 0a 09 20 |;.. b|reak;.. |
|00004e20| 20 63 61 73 65 20 27 74 | 27 3a 0a 09 20 20 20 20 | case 't|':.. |
|00004e30| 69 66 20 28 6f 70 74 61 | 72 67 20 3d 3d 20 4e 55 |if (opta|rg == NU|
|00004e40| 4c 4c 29 0a 09 20 20 20 | 20 20 20 20 20 75 73 61 |LL).. | usa|
|00004e50| 67 65 28 66 73 63 6b 2c | 20 73 70 29 3b 0a 09 20 |ge(fsck,| sp);.. |
|00004e60| 20 20 20 66 73 74 79 70 | 65 20 3d 20 6f 70 74 61 | fstyp|e = opta|
|00004e70| 72 67 3b 0a 09 20 20 20 | 20 62 72 65 61 6b 3b 0a |rg;.. | break;.|
|00004e80| 09 20 20 64 65 66 61 75 | 6c 74 3a 0a 09 20 20 20 |. defau|lt:.. |
|00004e90| 20 6d 6f 72 65 20 3d 20 | 31 3b 0a 09 20 20 20 20 | more = |1;.. |
|00004ea0| 62 72 65 61 6b 3b 09 09 | 2f 2a 20 73 74 61 72 74 |break;..|/* start|
|00004eb0| 20 6f 66 20 73 70 65 63 | 69 66 69 63 20 61 72 67 | of spec|ific arg|
|00004ec0| 75 6d 65 6e 74 73 20 2a | 2f 0a 09 7d 0a 0a 20 20 |uments *|/..}.. |
|00004ed0| 20 20 2f 2a 20 44 69 64 | 20 77 65 20 67 65 74 20 | /* Did| we get |
|00004ee0| 61 6e 79 20 73 70 65 63 | 69 66 69 63 20 61 72 67 |any spec|ific arg|
|00004ef0| 75 6d 65 6e 74 73 3f 20 | 2a 2f 0a 20 20 20 20 69 |uments? |*/. i|
|00004f00| 66 20 28 6d 6f 72 65 29 | 0a 20 20 20 20 20 20 20 |f (more)|. |
|00004f10| 20 6f 70 74 69 6e 64 2d | 2d 3b 0a 0a 20 20 20 20 | optind-|-;.. |
|00004f20| 2f 2a 20 50 72 69 6e 74 | 20 6f 75 72 20 76 65 72 |/* Print| our ver|
|00004f30| 73 69 6f 6e 20 6e 75 6d | 62 65 72 20 69 66 20 72 |sion num|ber if r|
|00004f40| 65 71 75 65 73 74 65 64 | 2e 20 2a 2f 0a 20 20 20 |equested|. */. |
|00004f50| 20 69 66 20 28 76 65 72 | 62 6f 73 65 29 0a 20 20 | if (ver|bose). |
|00004f60| 20 20 20 20 20 20 70 72 | 69 6e 74 66 28 22 25 73 | pr|intf("%s|
|00004f70| 20 28 66 73 75 74 69 6c | 29 20 76 65 72 73 69 6f | (fsutil|) versio|
|00004f80| 6e 20 25 73 20 28 25 73 | 29 5c 6e 22 2c 20 61 72 |n %s (%s|)\n", ar|
|00004f90| 67 76 5b 30 5d 2c 0a 09 | 20 20 20 20 20 20 20 56 |gv[0],..| V|
|00004fa0| 65 72 73 69 6f 6e 2c 20 | 5f 5f 44 41 54 45 5f 5f |ersion, |__DATE__|
|00004fb0| 29 3b 0a 0a 20 20 20 20 | 2f 2a 20 55 70 64 61 74 |);.. |/* Updat|
|00004fc0| 65 20 6f 75 72 20 50 41 | 54 48 20 74 6f 20 69 6e |e our PA|TH to in|
|00004fd0| 63 6c 75 64 65 20 2f 65 | 74 63 2f 66 73 20 61 6e |clude /e|tc/fs an|
|00004fe0| 64 20 2f 65 74 63 2e 20 | 2a 2f 0a 20 20 20 20 73 |d /etc. |*/. s|
|00004ff0| 74 72 63 70 79 28 6e 65 | 77 70 61 74 68 2c 20 22 |trcpy(ne|wpath, "|
|00005000| 50 41 54 48 3d 2f 65 74 | 63 2f 66 73 3a 2f 65 74 |PATH=/et|c/fs:/et|
|00005010| 63 3a 22 29 3b 0a 20 20 | 20 20 69 66 20 28 28 6f |c:");. | if ((o|
|00005020| 6c 64 70 61 74 68 20 3d | 20 67 65 74 65 6e 76 28 |ldpath =| getenv(|
|00005030| 22 50 41 54 48 22 29 29 | 20 21 3d 20 4e 55 4c 4c |"PATH"))| != NULL|
|00005040| 29 0a 20 20 20 20 20 20 | 20 20 73 74 72 63 61 74 |). | strcat|
|00005050| 28 6e 65 77 70 61 74 68 | 2c 20 6f 6c 64 70 61 74 |(newpath|, oldpat|
|00005060| 68 29 3b 0a 20 20 20 20 | 70 75 74 65 6e 76 28 6e |h);. |putenv(n|
|00005070| 65 77 70 61 74 68 29 3b | 0a 20 20 20 20 0a 20 20 |ewpath);|. . |
|00005080| 20 20 2f 2a 20 49 66 20 | 2d 41 20 77 61 73 20 73 | /* If |-A was s|
|00005090| 70 65 63 69 66 69 65 64 | 20 28 22 63 68 65 63 6b |pecified| ("check|
|000050a0| 20 61 6c 6c 22 29 2c 20 | 64 6f 75 62 6c 65 2d 63 | all"), |double-c|
|000050b0| 68 65 63 6b 2e 20 2a 2f | 0a 20 20 20 20 69 66 20 |heck. */|. if |
|000050c0| 28 64 6f 61 6c 6c 29 20 | 7b 0a 09 69 66 20 28 21 |(doall) |{..if (!|
|000050d0| 66 73 63 6b 20 7c 7c 20 | 28 66 73 74 79 70 65 20 |fsck || |(fstype |
|000050e0| 21 3d 20 4e 55 4c 4c 29 | 29 0a 09 20 20 20 20 75 |!= NULL)|).. u|
|000050f0| 73 61 67 65 28 66 73 63 | 6b 2c 20 73 70 29 3b 0a |sage(fsc|k, sp);.|
|00005100| 09 65 78 69 74 28 63 68 | 65 63 6b 5f 61 6c 6c 28 |.exit(ch|eck_all(|
|00005110| 76 65 72 62 6f 73 65 2c | 20 26 61 72 67 76 5b 6f |verbose,| &argv[o|
|00005120| 70 74 69 6e 64 5d 29 29 | 3b 0a 20 20 20 20 7d 20 |ptind]))|;. } |
|00005130| 65 6c 73 65 20 7b 0a 09 | 2f 2a 20 49 66 20 2d 74 |else {..|/* If -t|
|00005140| 20 77 61 73 6e 27 74 20 | 73 70 65 63 69 66 69 65 | wasn't |specifie|
|00005150| 64 2c 20 77 65 20 6d 75 | 73 74 20 64 65 64 75 63 |d, we mu|st deduc|
|00005160| 65 20 66 73 74 79 70 65 | 2e 20 2a 2f 0a 09 69 66 |e fstype|. */..if|
|00005170| 20 28 66 73 74 79 70 65 | 20 3d 3d 20 4e 55 4c 4c | (fstype| == NULL|
|00005180| 29 20 7b 0a 09 20 20 20 | 20 2f 2a 20 6d 61 6b 65 |) {.. | /* make|
|00005190| 20 73 75 72 65 20 74 68 | 61 74 20 22 66 69 6c 65 | sure th|at "file|
|000051a0| 73 79 73 22 20 77 61 73 | 20 73 70 65 63 69 66 69 |sys" was| specifi|
|000051b0| 65 64 20 2a 2f 0a 09 20 | 20 20 20 69 66 20 28 6f |ed */.. | if (o|
|000051c0| 70 74 69 6e 64 20 3e 3d | 20 61 72 67 63 29 0a 09 |ptind >=| argc)..|
|000051d0| 09 75 73 61 67 65 28 66 | 73 63 6b 2c 20 73 70 29 |.usage(f|sck, sp)|
|000051e0| 3b 0a 09 20 20 20 20 2f | 2a 20 74 68 65 6e 20 74 |;.. /|* then t|
|000051f0| 72 79 20 6c 6f 6f 6b 69 | 6e 67 20 66 6f 72 20 69 |ry looki|ng for i|
|00005200| 74 20 69 6e 20 2f 65 74 | 63 2f 66 73 74 61 62 20 |t in /et|c/fstab |
|00005210| 2a 2f 0a 09 20 20 20 20 | 69 66 20 28 28 66 73 65 |*/.. |if ((fse|
|00005220| 6e 74 20 3d 20 6c 6f 6f | 6b 75 70 28 61 72 67 76 |nt = loo|kup(argv|
|00005230| 5b 61 72 67 63 20 2d 20 | 31 5d 29 29 20 21 3d 20 |[argc - |1])) != |
|00005240| 4e 55 4c 4c 29 20 7b 0a | 09 20 20 20 20 20 20 20 |NULL) {.|. |
|00005250| 20 61 72 67 76 5b 61 72 | 67 63 20 2d 20 31 5d 20 | argv[ar|gc - 1] |
|00005260| 3d 20 66 73 65 6e 74 2d | 3e 6d 6e 74 5f 66 73 6e |= fsent-|>mnt_fsn|
|00005270| 61 6d 65 3b 0a 09 09 66 | 73 74 79 70 65 20 3d 20 |ame;...f|stype = |
|00005280| 66 73 65 6e 74 2d 3e 6d | 6e 74 5f 74 79 70 65 3b |fsent->m|nt_type;|
|00005290| 0a 09 20 20 20 20 7d 20 | 65 6c 73 65 20 7b 0a 09 |.. } |else {..|
|000052a0| 20 20 20 20 20 20 20 20 | 69 66 20 28 21 66 73 63 | |if (!fsc|
|000052b0| 6b 20 26 26 20 6f 70 74 | 69 6e 64 20 3c 20 61 72 |k && opt|ind < ar|
|000052c0| 67 63 2d 31 29 20 7b 0a | 09 09 20 20 20 20 69 66 |gc-1) {.|.. if|
|000052d0| 20 28 28 66 73 65 6e 74 | 20 3d 20 6c 6f 6f 6b 75 | ((fsent| = looku|
|000052e0| 70 28 61 72 67 76 5b 61 | 72 67 63 20 2d 20 32 5d |p(argv[a|rgc - 2]|
|000052f0| 29 29 20 21 3d 20 4e 55 | 4c 4c 29 20 7b 0a 09 09 |)) != NU|LL) {...|
|00005300| 20 20 20 20 20 20 20 20 | 61 72 67 76 5b 61 72 67 | |argv[arg|
|00005310| 63 20 2d 20 32 5d 20 3d | 20 66 73 65 6e 74 2d 3e |c - 2] =| fsent->|
|00005320| 6d 6e 74 5f 66 73 6e 61 | 6d 65 3b 0a 09 09 09 66 |mnt_fsna|me;....f|
|00005330| 73 74 79 70 65 20 3d 20 | 66 73 65 6e 74 2d 3e 6d |stype = |fsent->m|
|00005340| 6e 74 5f 74 79 70 65 3b | 0a 09 09 20 20 20 20 7d |nt_type;|... }|
|00005350| 0a 09 09 7d 0a 09 20 20 | 20 20 7d 0a 09 20 20 20 |...}.. | }.. |
|00005360| 20 2f 2a 20 69 66 20 77 | 65 20 73 74 69 6c 6c 20 | /* if w|e still |
|00005370| 64 6f 6e 27 74 20 6b 6e | 6f 77 2c 20 75 73 65 20 |don't kn|ow, use |
|00005380| 74 68 65 20 64 65 66 61 | 75 6c 74 20 2a 2f 0a 09 |the defa|ult */..|
|00005390| 20 20 20 20 69 66 20 28 | 66 73 74 79 70 65 20 3d | if (|fstype =|
|000053a0| 3d 20 4e 55 4c 4c 29 20 | 66 73 74 79 70 65 20 3d |= NULL) |fstype =|
|000053b0| 20 44 45 46 41 55 4c 54 | 5f 46 53 54 59 50 45 3b | DEFAULT|_FSTYPE;|
|000053c0| 0a 09 7d 0a 0a 09 2f 2a | 20 42 75 69 6c 64 20 70 |..}.../*| Build p|
|000053d0| 72 6f 67 72 61 6d 20 6e | 61 6d 65 2e 20 2a 2f 0a |rogram n|ame. */.|
|000053e0| 09 73 70 72 69 6e 74 66 | 28 70 61 74 68 2c 20 5f |.sprintf|(path, _|
|000053f0| 50 41 54 48 5f 50 52 4f | 47 2c 20 73 70 2c 20 66 |PATH_PRO|G, sp, f|
|00005400| 73 74 79 70 65 29 3b 0a | 09 65 78 69 74 28 64 6f |stype);.|.exit(do|
|00005410| 5f 65 78 65 63 28 70 61 | 74 68 2c 20 26 61 72 67 |_exec(pa|th, &arg|
|00005420| 76 5b 6f 70 74 69 6e 64 | 5d 2c 20 76 65 72 62 6f |v[optind|], verbo|
|00005430| 73 65 29 29 3b 0a 20 20 | 20 20 7d 0a 20 20 20 20 |se));. | }. |
|00005440| 2f 2a 4e 4f 54 52 45 41 | 43 48 45 44 2a 2f 0a 7d |/*NOTREA|CHED*/.}|
|00005450| 0a 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005600| 62 6f 6f 74 75 74 69 6c | 73 2f 52 45 41 44 4d 45 |bootutil|s/README|
|00005610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005660| 00 00 00 00 20 20 20 36 | 36 34 20 00 20 20 20 33 |.... 6|64 . 3|
|00005670| 31 30 20 00 20 20 20 20 | 31 35 20 00 20 20 20 20 |10 . |15 . |
|00005680| 20 20 31 31 30 30 36 20 | 20 35 34 31 34 34 36 32 | 11006 | 5414462|
|00005690| 32 35 33 20 20 31 32 34 | 32 37 00 20 30 00 00 00 |253 124|27. 0...|
|000056a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005700| 00 75 73 74 61 72 20 20 | 00 6c 69 6e 75 78 00 00 |.ustar |.linux..|
|00005710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005720| 00 00 00 00 00 00 00 00 | 00 6c 69 6e 75 78 00 00 |........|.linux..|
|00005730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005800| 62 6f 6f 74 75 74 69 6c | 73 2d 30 2e 31 0a 0a 2a |bootutil|s-0.1..*|
|00005810| 20 41 4c 50 48 41 20 52 | 45 4c 45 41 53 45 3a 20 | ALPHA R|ELEASE: |
|00005820| 55 73 65 20 61 74 20 79 | 6f 75 72 20 6f 77 6e 20 |Use at y|our own |
|00005830| 72 69 73 6b 21 20 2a 0a | 0a 2a 20 59 6f 75 20 4d |risk! *.|.* You M|
|00005840| 55 53 54 20 68 61 76 65 | 20 30 2e 39 39 70 6c 31 |UST have| 0.99pl1|
|00005850| 30 20 6f 72 20 6c 61 74 | 65 72 20 6b 65 72 6e 65 |0 or lat|er kerne|
|00005860| 6c 20 74 6f 20 6d 61 6b | 65 20 75 73 65 20 6f 66 |l to mak|e use of|
|00005870| 20 61 6c 6c 20 6f 66 20 | 74 68 65 0a 20 20 66 61 | all of |the. fa|
|00005880| 63 69 6c 69 74 69 65 73 | 20 6f 66 20 74 68 69 73 |cilities| of this|
|00005890| 20 70 61 63 6b 61 67 65 | 2e 20 20 49 66 20 79 6f | package|. If yo|
|000058a0| 75 20 63 61 6e 20 6c 69 | 76 65 20 77 69 74 68 6f |u can li|ve witho|
|000058b0| 75 74 20 74 68 65 20 75 | 6e 6d 6f 75 6e 74 2d 72 |ut the u|nmount-r|
|000058c0| 6f 6f 74 0a 20 20 66 65 | 61 74 75 72 65 2c 20 74 |oot. fe|ature, t|
|000058d0| 68 65 6e 20 30 2e 39 39 | 70 6c 39 20 77 69 6c 6c |hen 0.99|pl9 will|
|000058e0| 20 77 6f 72 6b 2e 20 2a | 0a 0a 54 68 69 73 20 69 | work. *|..This i|
|000058f0| 73 20 74 68 65 20 66 69 | 72 73 74 20 72 65 6c 65 |s the fi|rst rele|
|00005900| 61 73 65 20 6f 66 20 61 | 20 73 65 74 20 6f 66 20 |ase of a| set of |
|00005910| 75 74 69 6c 69 74 69 65 | 73 20 64 65 73 69 67 6e |utilitie|s design|
|00005920| 65 64 20 74 6f 20 61 75 | 74 6f 6d 61 74 65 0a 74 |ed to au|tomate.t|
|00005930| 68 65 20 6d 61 6e 61 67 | 65 6d 65 6e 74 20 61 6e |he manag|ement an|
|00005940| 64 20 63 68 65 63 6b 69 | 6e 67 20 6f 66 20 66 69 |d checki|ng of fi|
|00005950| 6c 65 73 79 73 74 65 6d | 73 20 61 74 20 62 6f 6f |lesystem|s at boo|
|00005960| 74 20 74 69 6d 65 20 61 | 6e 64 20 73 68 75 74 64 |t time a|nd shutd|
|00005970| 6f 77 6e 2e 0a 49 74 20 | 73 75 70 70 6f 72 74 73 |own..It |supports|
|00005980| 20 61 75 74 6f 6d 61 74 | 69 63 20 61 6e 64 20 73 | automat|ic and s|
|00005990| 61 66 65 20 27 66 73 63 | 6b 27 20 6f 66 20 61 6c |afe 'fsc|k' of al|
|000059a0| 6c 20 66 69 6c 65 73 79 | 73 74 65 6d 73 20 28 69 |l filesy|stems (i|
|000059b0| 6e 63 6c 75 64 69 6e 67 | 0a 72 6f 6f 74 29 20 61 |ncluding|.root) a|
|000059c0| 74 20 62 6f 6f 74 20 74 | 69 6d 65 20 62 79 20 62 |t boot t|ime by b|
|000059d0| 6f 6f 74 69 6e 67 20 77 | 69 74 68 20 72 6f 6f 74 |ooting w|ith root|
|000059e0| 20 72 65 61 64 6f 6e 6c | 79 3b 20 69 66 20 74 68 | readonl|y; if th|
|000059f0| 65 20 66 73 63 6b 20 73 | 75 63 63 65 65 64 73 0a |e fsck s|ucceeds.|
|00005a00| 74 68 65 6e 20 72 6f 6f | 74 20 69 73 20 72 65 6d |then roo|t is rem|
|00005a10| 6f 75 6e 74 65 64 20 72 | 65 61 64 2d 77 72 69 74 |ounted r|ead-writ|
|00005a20| 65 20 61 6e 64 20 62 6f | 6f 74 69 6e 67 20 63 61 |e and bo|oting ca|
|00005a30| 6e 20 63 6f 6e 74 69 6e | 75 65 2e 0a 0a 57 68 79 |n contin|ue...Why|
|00005a40| 20 62 6f 74 68 65 72 3f | 0a 0a 57 65 6c 6c 2c 20 | bother?|..Well, |
|00005a50| 6d 61 6e 79 20 70 65 6f | 70 6c 65 20 6c 69 6b 65 |many peo|ple like|
|00005a60| 20 74 6f 20 68 61 76 65 | 20 61 20 73 61 66 65 20 | to have| a safe |
|00005a70| 61 6e 64 20 72 65 6c 69 | 61 62 6c 65 20 63 68 65 |and reli|able che|
|00005a80| 63 6b 20 6f 66 20 61 6c | 6c 20 74 68 65 69 72 0a |ck of al|l their.|
|00005a90| 66 69 6c 65 73 79 73 74 | 65 6d 73 20 64 75 72 69 |filesyst|ems duri|
|00005aa0| 6e 67 20 62 6f 6f 74 2e | 20 20 54 68 69 73 20 69 |ng boot.| This i|
|00005ab0| 73 20 65 73 70 65 63 69 | 61 6c 6c 79 20 74 72 75 |s especi|ally tru|
|00005ac0| 65 20 66 6f 72 20 65 78 | 74 32 66 73 2c 20 62 65 |e for ex|t2fs, be|
|00005ad0| 63 61 75 73 65 0a 61 6c | 6c 20 65 78 74 32 66 73 |cause.al|l ext2fs|
|00005ae0| 20 66 69 6c 65 73 79 73 | 74 65 6d 73 20 68 61 76 | filesys|tems hav|
|00005af0| 65 20 61 20 73 70 65 63 | 69 61 6c 20 27 63 6c 65 |e a spec|ial 'cle|
|00005b00| 61 6e 27 20 66 6c 61 67 | 20 77 68 69 63 68 20 67 |an' flag| which g|
|00005b10| 65 74 73 20 73 65 74 20 | 77 68 65 6e 0a 74 68 65 |ets set |when.the|
|00005b20| 20 66 69 6c 65 73 79 73 | 74 65 6d 20 69 73 20 63 | filesys|tem is c|
|00005b30| 6c 65 61 6e 65 64 20 28 | 62 79 20 65 32 66 73 63 |leaned (|by e2fsc|
|00005b40| 6b 29 20 6f 72 20 69 73 | 20 75 6e 6d 6f 75 6e 74 |k) or is| unmount|
|00005b50| 65 64 20 63 6c 65 61 6e | 6c 79 2c 20 61 6e 64 0a |ed clean|ly, and.|
|00005b60| 77 68 69 63 68 20 67 65 | 74 73 20 75 6e 73 65 74 |which ge|ts unset|
|00005b70| 20 77 68 65 6e 20 74 68 | 65 20 66 69 6c 65 73 79 | when th|e filesy|
|00005b80| 73 74 65 6d 20 69 73 20 | 61 63 74 69 76 65 2e 20 |stem is |active. |
|00005b90| 20 65 32 66 73 63 6b 20 | 63 61 6e 20 73 65 6e 73 | e2fsck |can sens|
|00005ba0| 65 20 74 68 69 73 0a 66 | 6c 61 67 2c 20 61 6e 64 |e this.f|lag, and|
|00005bb0| 20 77 69 6c 6c 20 73 6b | 69 70 20 6f 76 65 72 20 | will sk|ip over |
|00005bc0| 66 69 6c 65 73 79 73 74 | 65 6d 73 20 77 68 69 63 |filesyst|ems whic|
|00005bd0| 68 20 61 72 65 20 63 6c | 65 61 6e 2e 20 20 0a 0a |h are cl|ean. ..|
|00005be0| 54 68 69 73 20 6d 65 61 | 6e 73 20 74 68 61 74 20 |This mea|ns that |
|00005bf0| 65 32 66 73 63 6b 20 77 | 6f 6e 27 74 20 62 6f 74 |e2fsck w|on't bot|
|00005c00| 68 65 72 20 79 6f 75 20 | 77 69 74 68 20 61 20 6c |her you |with a l|
|00005c10| 61 62 6f 72 69 6f 75 73 | 20 66 69 6c 65 73 79 73 |aborious| filesys|
|00005c20| 74 65 6d 0a 63 68 65 63 | 6b 20 61 74 20 65 61 63 |tem.chec|k at eac|
|00005c30| 68 20 73 74 61 72 74 75 | 70 2c 20 61 73 20 6c 6f |h startu|p, as lo|
|00005c40| 6e 67 20 61 73 20 79 6f | 75 20 61 6c 77 61 79 73 |ng as yo|u always|
|00005c50| 20 73 68 75 74 20 64 6f | 77 6e 20 63 6c 65 61 6e | shut do|wn clean|
|00005c60| 6c 79 3b 20 62 75 74 20 | 69 74 0a 77 69 6c 6c 20 |ly; but |it.will |
|00005c70| 63 68 65 63 6b 20 79 6f | 75 72 20 66 69 6c 65 73 |check yo|ur files|
|00005c80| 79 73 74 65 6d 73 20 61 | 75 74 6f 6d 61 74 69 63 |ystems a|utomatic|
|00005c90| 61 6c 6c 79 20 69 66 20 | 79 6f 75 20 65 76 65 72 |ally if |you ever|
|00005ca0| 20 68 61 76 65 20 61 20 | 63 72 61 73 68 2c 0a 62 | have a |crash,.b|
|00005cb0| 65 63 61 75 73 65 20 61 | 66 74 65 72 77 61 72 64 |ecause a|fterward|
|00005cc0| 73 20 74 68 65 20 66 69 | 6c 65 73 79 73 74 65 6d |s the fi|lesystem|
|00005cd0| 20 27 63 6c 65 61 6e 27 | 20 66 6c 61 67 73 20 77 | 'clean'| flags w|
|00005ce0| 69 6c 6c 20 6e 6f 74 20 | 62 65 20 73 65 74 2e 20 |ill not |be set. |
|00005cf0| 20 59 6f 75 0a 2a 63 61 | 6e 2a 20 73 74 69 6c 6c | You.*ca|n* still|
|00005d00| 20 6d 6f 75 6e 74 20 61 | 6e 20 75 6e 63 6c 65 61 | mount a|n unclea|
|00005d10| 6e 20 66 69 6c 65 73 79 | 73 74 65 6d 2c 20 62 75 |n filesy|stem, bu|
|00005d20| 74 20 65 78 74 32 66 73 | 20 77 69 6c 6c 20 67 69 |t ext2fs| will gi|
|00005d30| 76 65 20 79 6f 75 20 61 | 0a 77 61 72 6e 69 6e 67 |ve you a|.warning|
|00005d40| 20 61 6e 64 20 77 69 6c | 6c 20 6e 6f 74 20 6d 61 | and wil|l not ma|
|00005d50| 72 6b 20 69 74 20 63 6c | 65 61 6e 20 77 68 65 6e |rk it cl|ean when|
|00005d60| 20 69 74 20 67 65 74 73 | 20 75 6e 6d 6f 75 6e 74 | it gets| unmount|
|00005d70| 65 64 2e 0a 0a 4f 6e 65 | 20 6f 66 20 74 68 65 20 |ed...One| of the |
|00005d80| 70 72 6f 62 6c 65 6d 73 | 20 77 69 74 68 20 61 75 |problems| with au|
|00005d90| 74 6f 6d 61 74 69 63 20 | 66 73 63 6b 27 69 6e 67 |tomatic |fsck'ing|
|00005da0| 20 69 73 20 74 68 61 74 | 20 69 74 20 69 73 20 75 | is that| it is u|
|00005db0| 6e 73 61 66 65 20 74 6f | 0a 63 68 65 63 6b 20 6d |nsafe to|.check m|
|00005dc0| 6f 75 6e 74 65 64 2c 20 | 61 63 74 69 76 65 20 66 |ounted, |active f|
|00005dd0| 69 6c 65 73 79 73 74 65 | 6d 73 2e 20 20 54 68 65 |ilesyste|ms. The|
|00005de0| 20 73 6f 6c 75 74 69 6f | 6e 20 69 73 20 74 6f 20 | solutio|n is to |
|00005df0| 69 6e 69 74 69 61 6c 6c | 79 20 6d 6f 75 6e 74 0a |initiall|y mount.|
|00005e00| 6f 6e 6c 79 20 74 68 65 | 20 72 6f 6f 74 20 66 69 |only the| root fi|
|00005e10| 6c 65 73 79 73 74 65 6d | 2c 20 61 6e 64 20 74 6f |lesystem|, and to|
|00005e20| 20 6d 6f 75 6e 74 20 69 | 74 20 69 6e 20 72 65 61 | mount i|t in rea|
|00005e30| 64 6f 6e 6c 79 20 6d 6f | 64 65 2e 20 20 49 6e 20 |donly mo|de. In |
|00005e40| 74 68 69 73 0a 73 69 74 | 75 61 74 69 6f 6e 2c 20 |this.sit|uation, |
|00005e50| 66 73 63 6b 20 63 61 6e | 20 72 75 6e 20 73 61 66 |fsck can| run saf|
|00005e60| 65 6c 79 20 6f 6e 20 61 | 6c 6c 20 66 69 6c 65 73 |ely on a|ll files|
|00005e70| 79 73 74 65 6d 73 2c 20 | 77 69 74 68 6f 75 74 20 |ystems, |without |
|00005e80| 74 68 65 20 64 61 6e 67 | 65 72 0a 74 68 61 74 20 |the dang|er.that |
|00005e90| 74 68 65 20 6b 65 72 6e | 65 6c 20 6d 69 67 68 74 |the kern|el might|
|00005ea0| 20 73 74 61 72 74 20 63 | 6f 6e 66 6c 69 63 74 69 | start c|onflicti|
|00005eb0| 6e 67 20 77 69 74 68 20 | 74 68 65 20 72 65 70 61 |ng with |the repa|
|00005ec0| 69 72 73 20 62 65 69 6e | 67 20 64 6f 6e 65 20 74 |irs bein|g done t|
|00005ed0| 6f 0a 74 68 65 20 66 69 | 6c 65 73 79 73 74 65 6d |o.the fi|lesystem|
|00005ee0| 2e 0a 0a 49 66 20 61 6e | 79 20 72 65 70 61 69 72 |...If an|y repair|
|00005ef0| 73 20 77 65 72 65 20 64 | 6f 6e 65 2c 20 69 74 20 |s were d|one, it |
|00005f00| 69 73 20 75 6e 73 61 66 | 65 20 74 6f 20 70 72 6f |is unsaf|e to pro|
|00005f10| 63 65 65 64 20 61 6e 79 | 20 66 75 72 74 68 65 72 |ceed any| further|
|00005f20| 20 62 65 63 61 75 73 65 | 0a 74 68 65 20 6b 65 72 | because|.the ker|
|00005f30| 6e 65 6c 20 6d 69 67 68 | 74 20 68 61 76 65 20 63 |nel migh|t have c|
|00005f40| 61 63 68 65 64 20 6f 6c | 64 20 69 6e 66 6f 72 6d |ached ol|d inform|
|00005f50| 61 74 69 6f 6e 20 61 62 | 6f 75 74 20 74 68 65 20 |ation ab|out the |
|00005f60| 66 69 6c 65 73 79 73 74 | 65 6d 73 0a 77 68 69 63 |filesyst|ems.whic|
|00005f70| 68 20 68 61 73 20 62 65 | 65 6e 20 75 70 64 61 74 |h has be|en updat|
|00005f80| 65 64 20 62 79 20 66 73 | 63 6b 2e 20 20 48 6f 77 |ed by fs|ck. How|
|00005f90| 65 76 65 72 2c 20 69 66 | 20 74 68 65 20 66 73 63 |ever, if| the fsc|
|00005fa0| 6b 20 73 75 63 63 65 65 | 64 65 64 2c 20 74 68 65 |k succee|ded, the|
|00005fb0| 6e 0a 77 65 20 63 61 6e | 20 72 65 6d 6f 75 6e 74 |n.we can| remount|
|00005fc0| 20 74 68 65 20 72 6f 6f | 74 20 66 69 6c 65 73 79 | the roo|t filesy|
|00005fd0| 73 74 65 6d 20 69 6e 20 | 72 65 61 64 2d 77 72 69 |stem in |read-wri|
|00005fe0| 74 65 20 6d 6f 64 65 20 | 61 6e 64 20 70 72 6f 63 |te mode |and proc|
|00005ff0| 65 65 64 20 74 6f 0a 6d | 6f 75 6e 74 20 61 6c 6c |eed to.m|ount all|
|00006000| 20 6f 66 20 74 68 65 20 | 6f 74 68 65 72 20 66 69 | of the |other fi|
|00006010| 6c 65 73 79 73 74 65 6d | 73 2e 0a 0a 46 69 6e 61 |lesystem|s...Fina|
|00006020| 6c 6c 79 2c 20 69 6e 20 | 6f 72 64 65 72 20 74 6f |lly, in |order to|
|00006030| 20 65 6e 73 75 72 65 20 | 74 68 61 74 20 66 69 6c | ensure |that fil|
|00006040| 65 73 79 73 74 65 6d 73 | 20 61 72 65 20 63 6f 72 |esystems| are cor|
|00006050| 72 65 63 74 6c 79 20 74 | 69 64 69 65 64 20 75 70 |rectly t|idied up|
|00006060| 0a 6f 6e 20 73 68 75 74 | 64 6f 77 6e 2c 20 77 65 |.on shut|down, we|
|00006070| 20 6e 65 65 64 20 74 6f | 20 75 6e 6d 6f 75 6e 74 | need to| unmount|
|00006080| 20 74 68 65 20 72 6f 6f | 74 20 61 74 20 73 68 75 | the roo|t at shu|
|00006090| 74 64 6f 77 6e 2e 20 20 | 54 68 69 73 20 69 73 20 |tdown. |This is |
|000060a0| 75 73 75 61 6c 6c 79 0a | 64 6f 6e 65 20 61 75 74 |usually.|done aut|
|000060b0| 6f 6d 61 74 69 63 61 6c | 6c 79 3b 20 74 68 65 20 |omatical|ly; the |
|000060c0| 73 74 61 6e 64 61 72 64 | 20 4c 69 6e 75 78 20 73 |standard| Linux s|
|000060d0| 68 75 74 64 6f 77 6e 20 | 70 72 6f 67 72 61 6d 73 |hutdown |programs|
|000060e0| 20 64 6f 20 61 20 27 75 | 6d 6f 75 6e 74 0a 2d 61 | do a 'u|mount.-a|
|000060f0| 27 20 63 6f 6d 6d 61 6e | 64 20 74 6f 20 75 6e 6d |' comman|d to unm|
|00006100| 6f 75 6e 74 20 61 6c 6c | 20 6d 6f 75 6e 74 65 64 |ount all| mounted|
|00006110| 20 66 69 6c 65 73 79 73 | 74 65 6d 73 2e 20 20 59 | filesys|tems. Y|
|00006120| 6f 75 20 4d 55 53 54 20 | 68 61 76 65 20 61 0a 30 |ou MUST |have a.0|
|00006130| 2e 39 39 70 6c 31 30 20 | 6f 72 20 6c 61 74 65 72 |.99pl10 |or later|
|00006140| 20 6b 65 72 6e 65 6c 20 | 66 6f 72 20 74 68 69 73 | kernel |for this|
|00006150| 20 74 6f 20 77 6f 72 6b | 2e 20 20 4d 61 6e 79 20 | to work|. Many |
|00006160| 76 65 72 73 69 6f 6e 73 | 20 6f 66 20 75 6d 6f 75 |versions| of umou|
|00006170| 6e 74 0a 65 78 70 6c 69 | 63 69 74 6c 79 20 64 6f |nt.expli|citly do|
|00006180| 20 6e 6f 74 20 74 72 79 | 20 74 6f 20 75 6e 6d 6f | not try| to unmo|
|00006190| 75 6e 74 20 74 68 65 20 | 72 6f 6f 74 2c 20 73 69 |unt the |root, si|
|000061a0| 6e 63 65 20 70 72 65 2d | 39 39 70 6c 31 30 20 6b |nce pre-|99pl10 k|
|000061b0| 65 72 6e 65 6c 73 0a 66 | 6f 72 62 61 64 65 20 74 |ernels.f|orbade t|
|000061c0| 68 69 73 2e 20 20 54 68 | 65 20 75 6d 6f 75 6e 74 |his. Th|e umount|
|000061d0| 20 69 6e 63 6c 75 64 65 | 64 20 68 65 72 65 20 77 | include|d here w|
|000061e0| 69 6c 6c 20 75 6e 6d 6f | 75 6e 74 20 65 76 65 6e |ill unmo|unt even|
|000061f0| 20 74 68 65 20 72 6f 6f | 74 0a 66 69 6c 65 73 79 | the roo|t.filesy|
|00006200| 73 74 65 6d 2e 20 20 28 | 41 20 73 70 65 63 69 61 |stem. (|A specia|
|00006210| 6c 20 6b 65 72 6e 65 6c | 20 74 72 69 63 6b 20 69 |l kernel| trick i|
|00006220| 6e 20 70 6c 31 30 20 61 | 6c 6c 6f 77 73 20 74 68 |n pl10 a|llows th|
|00006230| 69 73 20 74 6f 20 77 6f | 72 6b 20 62 79 0a 6b 65 |is to wo|rk by.ke|
|00006240| 65 70 69 6e 67 20 74 68 | 65 20 66 69 6c 65 73 79 |eping th|e filesy|
|00006250| 73 74 65 6d 20 61 6c 69 | 76 65 20 69 6e 20 72 65 |stem ali|ve in re|
|00006260| 61 64 6f 6e 6c 79 20 6d | 6f 64 65 20 61 66 74 65 |adonly m|ode afte|
|00006270| 72 20 69 74 20 68 61 73 | 20 62 65 65 6e 20 74 69 |r it has| been ti|
|00006280| 64 69 65 64 0a 75 70 2e | 29 0a 0a 54 68 65 20 62 |died.up.|)..The b|
|00006290| 6f 6f 74 75 70 20 6f 70 | 65 72 61 74 69 6f 6e 20 |ootup op|eration |
|000062a0| 6f 66 20 74 68 69 73 20 | 70 61 63 6b 61 67 65 20 |of this |package |
|000062b0| 69 73 20 69 6e 76 6f 6b | 65 64 20 62 79 20 74 68 |is invok|ed by th|
|000062c0| 65 20 2f 65 74 63 2f 72 | 63 20 73 68 65 6c 6c 0a |e /etc/r|c shell.|
|000062d0| 73 63 72 69 70 74 2c 20 | 61 6e 20 65 78 61 6d 70 |script, |an examp|
|000062e0| 6c 65 20 6f 66 20 77 68 | 69 63 68 20 69 73 20 69 |le of wh|ich is i|
|000062f0| 6e 20 6d 6f 75 6e 74 2f | 65 74 63 2f 72 63 2e 20 |n mount/|etc/rc. |
|00006300| 20 49 74 20 63 6f 6e 74 | 61 69 6e 73 20 74 68 65 | It cont|ains the|
|00006310| 0a 66 6f 6c 6c 6f 77 69 | 6e 67 20 69 6d 70 6f 72 |.followi|ng impor|
|00006320| 74 61 6e 74 20 6c 69 6e | 65 73 3a 0a 0a 20 20 20 |tant lin|es:.. |
|00006330| 20 23 20 43 68 65 63 6b | 20 74 68 65 20 69 6e 74 | # Check| the int|
|00006340| 65 67 72 69 74 79 20 6f | 66 20 61 6c 6c 20 66 69 |egrity o|f all fi|
|00006350| 6c 65 73 79 73 74 65 6d | 73 0a 20 20 20 20 2f 62 |lesystem|s. /b|
|00006360| 69 6e 2f 66 73 63 6b 20 | 2d 41 20 2d 61 0a 20 20 |in/fsck |-A -a. |
|00006370| 20 20 23 20 49 66 20 74 | 68 65 72 65 20 77 61 73 | # If t|here was|
|00006380| 20 61 20 66 61 69 6c 75 | 72 65 2c 20 64 72 6f 70 | a failu|re, drop|
|00006390| 20 69 6e 74 6f 20 73 69 | 6e 67 6c 65 2d 75 73 65 | into si|ngle-use|
|000063a0| 72 20 6d 6f 64 65 2e 0a | 20 20 20 20 69 66 20 5b |r mode..| if [|
|000063b0| 20 24 3f 20 2d 67 74 20 | 31 20 5d 20 3b 20 74 68 | $? -gt |1 ] ; th|
|000063c0| 65 6e 0a 09 20 20 20 20 | 65 63 68 6f 20 66 73 63 |en.. |echo fsc|
|000063d0| 6b 20 66 61 69 6c 65 64 | 2e 20 20 50 6c 65 61 73 |k failed|. Pleas|
|000063e0| 65 20 72 65 62 6f 6f 74 | 2e 0a 09 20 20 20 20 73 |e reboot|... s|
|000063f0| 68 0a 20 20 20 20 66 69 | 0a 0a 20 20 20 20 23 20 |h. fi|.. # |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.